~/talk

“Multithreading is the answer. What is the question? (part 1 of 2)”

Talkat CppCon 2017 · 2017-09-24..09-29· [concurrency]
links:none on file
slides:none on file

Explains concrete multithreading patterns: use of std::future/std::promise as ticket pairs, moving ownership with unique_ptr to avoid shared state, and passing work via a thread-safe queue (with work-stealing) to reduce locks. Shows when threads help (CPU-bound, stream stages, large read-only datasets) and when careful optimization removed threading entirely (a streaming server saturates the network at 12% of one core). Mentions libGuarded, RCU-based containers and CsSignal as tools used to prevent deadlocks and reduce synchronization.

AI-written summary · about

  1. 0:00Intro
  2. 0:14Agenda
  3. 0:52Multithreading is complicated
  4. 2:05Theres your first mistake
  5. 2:53Multithreading is the answer
  6. 3:21Multithreading
  7. 4:18Multitasking
  8. 4:36Quiz
  9. 5:49Thread vs Process
  10. 6:32Cores
  11. 7:02More cores doesnt mean faster
  12. 8:11Race conditions
  13. 9:12Stack
  14. 9:24Fiber
  15. 9:51Green Threads
  16. 10:42Multithreading in your toolbox
  17. 11:22Multithreaded solutions
  18. 13:53Real life example
  19. 15:05Generic multithreading environment
  20. 15:47Restaurant kitchen example
  21. 16:35Threading library
  22. 17:42Chefs might work at different speeds
  23. 18:22Lets make 50 apple pies
  24. 18:46Problems with this design
  25. 21:46deadlock
  26. 28:37Complex commercial kitchen
  27. 30:53Real kitchen
  28. 31:58Setting up resources
  29. 32:40Eating food
  30. 34:22Unique pointers
  31. 36:07Future Promise
  32. 37:35WorkStealing
  33. 38:43Locking
  34. 39:08Miscellaneous advice
  35. 42:01Readonly data
  36. 43:23Shared writable data
  37. 43:41Summary
  38. 44:05Subscribe
  39. 44:33CopperSpice
  40. 45:18Diamond
  41. 45:44Comments observations
~/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.