in reply to Re^2: Atomic operation
in thread Atomic operation

I believe the semantics on Windows differ slightly from *nix. (On Unix locks are advisory, on Windows they are mandatory.) Also the semantics on *nix vary based on the filesystem. (NFS is different than remote Windows is different from local filesystem.)

Which underscores the importance of having a unit test.

Replies are listed 'Best First'.
Re^4: Atomic operation
by ikegami (Patriarch) on Jul 20, 2009 at 18:43 UTC

    on Windows they are mandatory

    hum, I was sure Windows had both kinds, but I can't find anything on advisory locks.

    flock creates mandatory locks on Windows. I did not know that.