G
Guest
Hi all, I have a Windows service that uses a thread pool and a file watcher.
Everything works well enough except for the problem of a given file being
opened by more than one thread.
What is a good way to make sure that once a given file is opened by a thread
no other threads will open it for processing?
Everything works well enough except for the problem of a given file being
opened by more than one thread.
What is a good way to make sure that once a given file is opened by a thread
no other threads will open it for processing?