by Animats · 6y ago · 0 comments
Futex-based spinlocks do what, 1000 spin cycles before actually futex(2)ing?
If the holder of the lock got preempted you could be spinning for a very long time.
You might want to read https://webkit.org/blog/6161/locking-in-webkit/ about how Chrome implements high performance locks.