~/talk

Forward Progress in C++

Talkat CppNorth 2022 · 2022-07-18..07-20· [c-and-cpp, concurrency]
links:none on file
slides:none on file

Defines three concrete progress guarantees: concurrent forward progress for full threads (jthread, join/terminate rules), parallel forward progress for thread-pool and std::execution::par work (requires at least one task per submitted set to start, enables work stealing and amortization), and weakly parallel for GPUs/vector lanes (std::execution::par_unseq). Uses litmus tests, barriers, std::barrier, a system thread pool and work stealing, and shows deadlock vs livelock and why lockfree atomics are actually obstruction free. Describes blocking with forward progress delegation as the practical fix.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46What are progress guarantees
  3. 10:11Single-threaded code limits
  4. 11:14Concurrent forward progress
  5. 20:47Deadlock vs progress
  6. 21:09Parallel forward progress
  7. 32:26Thread pool efficiency
  8. 41:46Starvation and lifelocks
  9. 47:03Weakly parallel progress
  10. 53:26Pure parallelism use cases
  11. 1:00:01Undefined behavior quirks
  12. 1:03:57Memory model impacts
  13. 1:10:18Lock freedom explained
  14. 1:13:29Future of parallelism
  15. 1:16:23Summary and Q&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.