Re:On mutex performance and WTF::Lock
by saagarjha on Sunday April 02, 2017 @01:17PM
(#14017933)
For those wondering, WTF stands for Web Template Framework: https://webkit.org/blog/6161/locking-in-webkit/
[ Parent
| on HN ]
My favourite mutex name is the "sex lock" -- also known as the shared/exclusive or sx lock.
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...
They would have, if a Microsoft employee hadn't figured out a viable way to use extended mode in Windows 3.x.