Re:On mutex performance and WTF::Lock
by cperciva on Sunday April 02, 2017 @02:05PM
(#14018216)
My favourite mutex name is the "sex lock" -- also known as the shared/exclusive or sx lock.
[ Parent
| on HN ]
Windows 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/cl...