Optimal lock file method
Take a look at the enlightening presentation File Locking Tricks and Traps: This short talk presents several common pitfalls of file locking and a few useful tricks for using file locking more effectively. Edit: To address your questions more precisely: Is there a better synchronization method than the lock file? As @Hasturkun already mentioned and … Read more