N
nickdu
If I have a multi-threaded application which processes files from a
directory, what might be the best way to divy those files up to multiple
threads? I don't want the threads to be colliding on the same files. Once a
thread is processing a file I need to make sure another thread doesn't start
processing it. Also, if there are a million or so files in the directory I'm
thinking that Directory.GetFiles() might not be the best way to access that
list. Can I open the directory as a file and read the entries that way?
--
Thanks,
Nick
(e-mail address removed)
remove "nospam" change community. to msn.com
directory, what might be the best way to divy those files up to multiple
threads? I don't want the threads to be colliding on the same files. Once a
thread is processing a file I need to make sure another thread doesn't start
processing it. Also, if there are a million or so files in the directory I'm
thinking that Directory.GetFiles() might not be the best way to access that
list. Can I open the directory as a file and read the entries that way?
--
Thanks,
Nick
(e-mail address removed)
remove "nospam" change community. to msn.com