kevinyu.net
C++ 11 Atomics and Concurrency Memory Model – Part 1
What is the problem. Let us assume we have this source code that we want to compile. // Initially x = y = z = 0 x = 3; y = 4; z = x + y; print z; What if the compiler during the compilation reorder…