This article explains how to optimize spin-locks—locks that keep threads on the CPU rather than yielding to the scheduler—by reducing unnecessary atomic operations and using appropriate memory ordering. Through benchmarking and profiling, the authors demonstrate that relaxing memory ordering from sequential consistency to acquire-release semantics cuts uncontended latency in half and reduces four-thread contention latency from 246 ns to 131 ns.