News for hackers. Stuff that matters.
Re:Mutexes are faster than Spinlocks by temac on Saturday January 04, 2020 @04:20PM (#21957653)
Does it really sleep for a specified period instead of doing directed wake-ups? If so that's very far from ideal...
Re:Mutexes are faster than Spinlocks by bdash on Saturday January 04, 2020 @08:13PM (#21958889)
No, a thread that fails to acquire the mutex sleeps until the thread that is releasing the mutex explicitly wakes it. On Linux this is achieved via FUTEX_WAIT / FUTEX_WAKE.