There is a single network-shared folder of files that is to be processed by threads running on several servers.  Once a thread starts processing a certain file, I don't want any other thread to process it.  What are some techniques to ensure that only one thread processes a certain file?  Keep in mind that the threads are running on different servers.
technique to process a folder of files from several machines
multithreading