The web is full of blogs and discussions about file locking for multiple processes writing to the same file, but I can\'t find anywhere an explanation why in practice this doesn