Quote:
Originally Posted by BetterRed
Windows file locking is not mandatory, it's up to the application to use or not use.
|
No, it is mandatory. On windows, all files are locked as soon as they are opened, unless the application specially opts to use a file sharing mode. And both applications have to use the file sharing mode when opening files for sharing to work.
In contrast in POSIX file locking is advisory, opening files does not lock them unless the application asks for them to be locked and both applications have to ask for the lock for locking to work.