The Foundation & Challenges

This lesson briefs the foundation and challenges in the C++ memory model.

We'll cover the following...

The Foundation

The C++ memory model has to deal with the following points:

  • Atomic operations: operations that can be performed without interruption.
  • Partial ordering of operations: sequences of operations that must not be reordered.
  • Visible effects of operations: guarantees when operations on shared variables are visible to other threads.

The foundation of the contract are operations on ...