~/talk

Lock-free Programming is Dead - Long Live Lock-free Programming!

Talkat C++Now 2026 · 2026-05-04..05-08· [concurrency]
slides:none on file

Extensive CPU benchmarks on Intel, AMD, ARM and Apple silicon show spinlocks beat atomics under high contention—often improving whole-program throughput by ~2–2.5×—because contended atomics flood coherence traffic and cause backend/store-buffer stalls. For rare updates atomics win at low contention with minimal pipeline disruption. A hybrid MPMC ring (spinlocked head/tail, per-slot atomics, reserved-value handling) is implemented and proves faster overall but suffers worse tail latency because locks are preemptible. Key techniques: pre-read (multiple reads) plus aggressive backoff to avoid RFO storms; separate lock and data cache lines often helps.

AI-written summary · about

  1. 0:00Introduction
  2. 12:54Lock-free vs lock-based
  3. 23:28Spin locks vs atomics
  4. 31:24Hidden costs of locks
  5. 41:00Benchmarking locks vs lock-free
  6. 55:28Hybrid data structure design
  7. 1:06:51Latency vs throughput trade-offs
  8. 1:13:53Lock-free role today
  9. 1:23:53Key takeaways
  10. 1:35:42Q&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.