False sharing in C++: cache line alignment and the MESI penalty
·
8-minute read
How false sharing silently degrades concurrent C++ performance, how the MESI protocol makes it expensive, and how alignas fixes it — using a lock-free ring buffer as the worked example.