Synchronization with Atomic Variables

This lesson gives an overview of synchronization with atomic variables in C++.

We'll cover the following

As a starting point, I’ve implemented a typical consumer-producer workflow with the acquire-release semantic. Initially, I will use atomics and then will switch to fences. Let’s start with atomics because most of us are comfortable with them. That will not hold for fences; they are almost completely ignored in the literature on the C++ memory model.

Atomic Operations

Get hands-on with 1200+ tech skills courses.