Futex Reacquainted
To be fair, the futex (Fast Userspace muTEX) syscall has a rather misleading name, in the sense that it simply isn’t a mutex. In the original 2002 paper (Fuss, Futexes and Furwocks: Fast Userlevel Locking in Linux), it was invented specifically to implement a fast mutex, but capable of much more. I prefer to think of futex as a minimal useful subset that can fulfil most high level synchronization constructs.
Xinye Tao