Reading up on x86
1 deep · digging since oct 31
- Threads, Mutexes, and Atomics: Start With What Can Go Wrong
Understanding data races, mutex implementation on Linux, and atomic pitfalls (ABA, false sharing) shows that replacing mutexes with atomics is not automatically an optimization.