~/talk

The Two Memory Models

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [concurrency]
slides:none on file

Compares the C++ memory model to CPU models and shows concrete examples: making the ready flag an atomic with acquire/release turns the red (racy) arrows green so initialized data happens before use, while relaxed fails. Demonstrates GCC O3/14.1 emitted code differences: x86 needs no fences because of TSO (x86) store ordering, RISC‑V requires compiler-inserted fences or fence instructions. Explains store buffers, out-of-order execution, and when fences actually prevent reorders.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32Theoretical study
  3. 8:18Single-threaded reordering
  4. 19:38CPU and compiler constraints
  5. 28:44Happens-before in C++
  6. 32:31Atomic operations and ordering
  7. 43:06CPU memory models
  8. 55:26Relaxed models trade-offs
  9. 1:00:00Summary
~/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.