From: Radu Spineanu Date: 2006-08-30T05:31:53+09:00 Subject: process based locks for files Hi, I have two programs accessing the same file. Both programs open and close the file multiple times while running (for example reading it first, and then writing it back using global functions). In order to avoid race conditions i was wondering if it's possible to lock the file at the start of the running process and then unlock it at the end. During that time the running process should be able to open and close the file without problems. Thanks, Radu Spineanu