CppMem: Atomics with Non-Atomics
This lesson highlights atomics with non-atomics used in the context of CppMem.
We'll cover the following
A typical misunderstanding in the application of the acquire-release semantic is to assume that the acquire operation is waiting for the release operation. Based on this wrong assumption, you may think that x
does not have to be an atomic variable and we can further optimize the program.
Get hands-on with 1400+ tech skills courses.