~/talk

The speed of concurrency (is lock-free faster?)

Talkat CppCon 2016 · 2016-09-18..09-23· [concurrency]
links:none on file
slides:none on file

Benchmarks use Google benchmark and microtests of atomic increment, mutex, compare-and-swap loops and queue/list implementations on machines up to 120 hardware threads, showing mutexes often lose, CAS is better, atomic fetch_add fastest for simple counters, but surprisingly a homemade spin lock beats lock-free pointer swap in many cases. Tests report throughput, CPU-time and tail-latency (90/95%) and expose the ABA problem in lock-free lists; solutions include intrusive atomic shared pointers, hazard pointers, and copying work outside small critical sections.

AI-written summary · about

  1. 0:00Introduction to lock-free
  2. 2:25Performance measurement rules
  3. 3:51Concurrent program performance
  4. 6:36Cost of data sharing
  5. 10:11Synchronization mechanisms
  6. 11:59Atomic vs mutex vs lock-free
  7. 17:45Benchmarking on different systems
  8. 20:19Thread-safe data structures
  9. 24:38ABA problem in lock-free lists
  10. 27:56Atomic shared pointers
  11. 31:31Thread-safe forward list
  12. 35:26Lock-free queue basics
  13. 40:26Benchmarking queue special cases
  14. 45:28Spin lock vs lock-free queue
  15. 49:48Overhead of synchronization
  16. 54:14RCU and memory reclamation
  17. 54:57When to use lock-free
  18. 57:26Summary 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.