3 ms·
My favourite mutex name is the "sex lock" -- also known as the shared/exclusive or sx lock.
by cperciva 10y ago
My favourite mutex name is the "sex lock" -- also known as the shared/exclusive or sx lock.
- cpeterso 10y agoWindows NT has a kernel mutex type called a "mutant" that was added for compatibility with OS/2's mutex (back when the NT team was still pretending to be building a new OS/2 kernel). Dave Cutler thought the OS/2 mutex semantics were "brain-damaged" and called NT's version "mutant". If an OS/2 thread exited while holding a mutex, the mutex would remain inaccessible forever. https://blogs.msdn.microsoft.com/larryosterman/2004/09/24/cleaning-up-shared-resources-when-a-process-is-abnormally-terminated/ https://blogs.msdn.microsoft.com/larryosterman/2004/09/24/cl...
- pjmlp 10y agoThey would have, if a Microsoft employee hadn't figured out a viable way to use extended mode in Windows 3.x.