Optimizing for Workloads: Linux Spinlocks vs. Mutexes
nathanpetersen.com