5 ms·
Yes, pessimistic file locking is a fatal design flaw in Windows. Where did they get this idea, VMS? What problems is it meant to solve? Unixen seem to get al
by selimnairb 8y ago
Yes, pessimistic file locking is a fatal design flaw in Windows. Where did they get this idea, VMS? What problems is it meant to solve? Unixen seem to get along fine without it.
- pwg 8y agoI too would love to see something detailing the rationale for their choice of file locking defaults. If one could request a Raymond Chen insider explanation blog post, this one would be on my list of "why did they pick that default?".
- nayuki 8y agohttps://blogs.msdn.microsoft.com/larryosterman/2004/05/13/why-is-it-file_share_read-and-file_share_write-anyway/ https://blogs.msdn.microsoft.com/larryosterman/2004/05/13/wh... ; https://blogs.msdn.microsoft.com/oldnewthing/20071109-00/?p=24553 https://blogs.msdn.microsoft.com/oldnewthing/20071109-00/?p=...
- forapurpose 8y ago> pessimistic file locking is a fatal design flaw in Windows. ... What problems is it meant to solve? How else do you prevent people from overwriting each other's changes to the same data? Whether the lock is at the file level, field level, etc., how else do you manage collisions? It seems so obvious that perhaps I misunderstand your question.
- corrigible 8y ago... versioning with NTFS ADS?
- AnonymousPlanet 8y agoOh dear, the next "let's squeeze some more arbitrary complexity into a thing that should be simple" fuckup is supposed to be a solution? One has to be a horribly inexperienced engineer not to see how ADS is a very bad idea.
- mortehu 8y agoYou can't write to a running executable on Linux either, but you can remove it and create a new file with the same name (optionally atomically with a rename). The old file keeps existing until it's closed. This allows running programs to be updated.