&gt; You&#x27;d be hard pressed to convince me that Windows model for locking files is superior to what Unix offers,<p>This model is not unique to Windows, rather most non POSIX OSes.<p>I happen to know a bit of UNIX (Xenix, DG&#x2F;UX, HP-UX, Aix, Tru64, GNU&#x2F;Linux, *BSD).<p>Yes, it is all flowers and puppies when a process deals directly with a file. Then the only thing to be sorry is the lost data.<p>Now replace the contents file being worked on or delete it, in the context of a multi-process application, that passes the name around via IPC.<p>Another nice one are data races by not making use of flock() and just open a file for writing, UNIX locking is cooperative.