~/talk

Memory Model: Get your shared data under control

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [security]
links:none on file
slides:none on file

Explains the C++ memory model with concrete effects: compilers and CPUs reorder stores and reads, store buffers delay visibility, and sharing kills performance; demonstrates synchronization primitives that actually stop reordering — mutexes and atomics, lock_guard/unique_lock/shared locks, barrier, semaphore, condition_variable — and shows atomic operations like compare_exchange_weak/strong and atomic_ref. Uses hiking/ticket/lunch examples to build runnable patterns, shows what avoids deadlocks and what still surprises (two consecutive atomics are not atomic together).

AI-written summary · about

  1. 0:00Memory model importance
  2. 2:29Concurrency with Heda and Dan
  3. 10:02Code reordering effects
  4. 13:11Synchronization rules
  5. 17:49Ledge synchronization
  6. 19:17Mutexes for critical sections
  7. 23:11Barriers for group sync
  8. 26:45Semaphores for access control
  9. 29:41Condition variables with mutexes
  10. 32:11Atomic operations
  11. 43:46Atomic types summary
  12. 45:11Key takeaways
  13. 46:17Q&A
~/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.