If I have a multiprocess system that needs to process a bunch of directories, 1 directory per process, how likely is it that two processes will happen to grab the same directory?
Say I have dir/1 all the way to dir/99. I figure that if I touch
a .claimed file in the dir that the process is working on, there won't be conflicts. Are there problems with my approach?
There's a bit more complexity. It's not only multi-process, but it's distributed across several computers.