~/talk

Back to Basics: C++ Concurrency

Talkat CppCon 2023 · on Thursday, 2023-10-05· at 14:00· Adams, 6700 North Gaylord Rockies Boulevard· [security]
links:none on file
slides:none on file

Covers concrete rules and code rather than fluff: shows how std::thread, std::scoped_lock and std::atomic actually prevent data races, when to prefer C++17 parallel algorithms like transform_reduce, and why mutex contention kills performance. Gives worked examples including 100 threads incrementing a counter (expected 5000 but wrong without sync), explains deadlock scenarios and fixes, and points to upcoming std senders and threadpool in C++26. Watch if wanting runnable patterns and concrete numbers.

AI-written summary · about

  1. 0:00Concurrency introduction
  2. 3:19Concurrency basics
  3. 7:58Concurrency vs parallelism
  4. 9:24Parallel algorithms
  5. 13:19Creating threads in C++
  6. 17:53Data races and race conditions
  7. 27:10Mutex synchronization
  8. 34:58Lock guards to avoid deadlocks
  9. 43:03Atomic variables
  10. 47:15Advanced synchronization primitives
  11. 52:55Concurrency beyond threads
  12. 55:05Conclusion and key takeaways
~/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.