~/talk

Better Code: Concurrency

Talkat NDC London 2017 · 2017-01-16..01-20· [concurrency, c-and-cpp]
links:none on file
slides:none on file

Builds a C++14 reference task system from std::thread, std::mutex and condition_variable and shows how naive single-queue design performs horribly then improves performance ~100x with per-thread queues plus work stealing, reaching within 15% of Grand Central Dispatch. Argues for no raw synchronization primitives, documents how std::future/.get deadlocks on thread-pool tasks, and provides an experimental library adding continuations, joins, splits and cancellation. Demonstrates scale with a Fibonacci(1,000,000) example (≈29,000 digits, 72s single‑threaded).

AI-written summary · about

  1. 0:00Intro
  2. 1:00Goals
  3. 3:30Lightroom for Web
  4. 5:55Definitions
  5. 7:14Synchronization Primitives
  6. 7:41Getting them wrong
  7. 10:52Fixing bugs
  8. 13:24Performance through parallelism
  9. 15:42Amdahls Law
  10. 18:03Mutex
  11. 28:15Tasking System
  12. 30:15C Implementation
  13. 35:40Task Stealing
  14. 37:24Push to Spin
  15. 40:01Live Dispatch
  16. 40:42CEO
  17. 42:11Tasking
  18. 43:36Power
  19. 47:12Marshaling Exceptions
  20. 47:38Blocking Threads
  21. 47:58Stops
  22. 48:55STD Future
  23. 50:47STD Sink
  24. 51:21STD Future Wait
  25. 52:03Warnings
  26. 53:36Fibonacci continuation
  27. 54:00Futures vs completion handlers
  28. 55:26Joins
  29. 57:45abort
  30. 58:04shared future
  31. 58:40split future
  32. 59:17promise
~/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.