Should I use sync mechanisms to provide exclusive access to the text file? The file will be accessed by threads only through one process.
If you are sure that it will only pass through a process, a read-write lock with file handle The local storage solution in thread can be used to simulate it with only one author above but many readers
Comments
Post a Comment