· software
Spinlocks vs. Mutexes: When to Spin and When to Sleep
Introduction You’re staring at perf top showing 60 % CPU time in pthread_mutex_lock. Your latency is terrible. Someone suggests “just use a spinlock,” and sudd...
Introduction You’re staring at perf top showing 60 % CPU time in pthread_mutex_lock. Your latency is terrible. Someone suggests “just use a spinlock,” and sudd...