~/talk

The C++ Memory Model

Talkat Meeting C++ 2014 · 2014-12-05..12-06· [security]
links:none on file
slides:none on file

Clear, example‑driven rundown of the C++11 memory model that states what is and isn’t guaranteed, shows compare_exchange push‑only lock‑free code that works and explains why pop is hard, and walks through memory_order_relaxed, acquire/release and sequentially‑consistent semantics with concrete failure modes (Dekker’s algorithm fails without SC) and compiler/ARM/Visual Studio pitfalls. Explanations include the observable effects, which atomic ops synchronize, when data races produce undefined behavior, and where performance and portability tradeoffs actually show up.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Compiler optimizations
  3. 1:50Memory locations and races
  4. 7:23Historical examples
  5. 7:33Sequential consistency
  6. 8:18Interleaving operations
  7. 8:35Program order
  8. 8:54Guaranteeing consistency
  9. 9:04Advanced memory models
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.