~/talk

Multithreading 101: Concurrency Primitives From Scratch

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
slides:none on file

Builds concrete locking primitives: a simple spinlock using an atomic exchange spin loop (fast uncontended, wastes CPU when contended), then a kernel-assisted path using Linux futex and Windows WaitOnAddress via a futex/waitonaddress wrapper, and a portable parking lot with 4096 buckets that emulates futex semantics. Combines spin-then-park into a fast mutex (spin limit ≈1000, yield then park) and implements a condition variable on top; implementation runs and matches expected performance tradeoffs.

AI-written summary · about

  1. 0:00Introduction to concurrency
  2. 2:47Implementing a spin lock
  3. 8:50Understanding futexes
  4. 14:17Platform-specific futexes
  5. 23:24Building the parking lot
  6. 44:57Creating a fast mutex
  7. 55:04Condition variables
~/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.