7–10 Mar 2022
CERN
Europe/Zurich timezone
There is a live webcast for this event.

C++ Atomics: An Overview

7 Mar 2022, 10:55
10m
31/3-004 - IT Amphitheatre (CERN)

31/3-004 - IT Amphitheatre

CERN

105
Show room on map
10 Minutes EOS Core Development EOS 3

Speaker

Abhishek Lekshmanan

Description

std::atomic introduced since C++11 is used as a building block for lock free programming. However while the default flags provide the maximum consistency; the do come with a performance penalty and may not be what you want in all cases. We will look under the hood, at a top level on what the processor sees when an atomic is encountered, the acquire and release semantics, which are fundamentally what mutexes use; and thus understand what the various memory order flags mean and when it is safe (or unsafe) to use them.

Primary author

Presentation materials