~/talk

Intro to Concurrent Programming 2/3: Modern Queues and Flat Combining

Talkat Hydra 2022 · 2022-06-02..06-26· [concurrency]
links:none on file
slides:none on file

Shows how to build a high-throughput queue using the unconditional Fetch-And-Add counter plus a tiny CAS path: claim slots via 64-bit fetch-and-adds, handle races by marking a poisoned cell and retrying, and emulate an infinite array with fixed-size Michael-Scott segments. The result is obstruction-free (not lock-free) yet fast in practice. Also demonstrates flat combining: a single combiner holds a simple mutex, batches published operations, and applies them sequentially to cut synchronization overhead.

AI-written summary · about

  1. 0:00Introduction
  2. 3:54Modern queues overview
  3. 5:18Fetch-and-add primitive
  4. 13:43Scalable queue design
  5. 24:43Obstruction-free queue
  6. 31:07Empty queue handling
  7. 41:20Infinite array emulation
  8. 47:25Flat combining intro
  9. 54:53Flat combining example
  10. 59:29Summary
  11. 1:00:36Q&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.