in reply to Multiple Acess to a single file
In addition to the above mentioned choices, there is another elegant one: which is to combine your multiple processes into one program and fire the different functions as different threads perhaps using Thread::Queue.