~/talk

Atomics, Locks, and Tasks (part 2 of 2)

Talkat CppCon 2019 · 2019-09-15..09-20· [concurrency, software-architecture]
slides:none on file

Compares raw threads, futures/promises, and task-based APIs and shows concrete fixes and numbers: a 100 million element inner product runs ~2.5–3 s single threaded and achieves about 8–10x speedup with C++17 parallel execution using std::async and std::transform with execution policies though Windows implementation limits vectorization, demonstrates joining bugs and the scope thread pattern and recommends std::jthread in C++20, explains condition variable pitfalls and shows promise/future transfers exceptions and single-use synchronization versus condition variables.

AI-written summary · about

  1. 0:00Threats vs Tasks
  2. 1:30Threat Acne Error
  3. 2:45Threat Acne Example
  4. 4:50ScopeThreat
  5. 8:55Numbers
  6. 10:40Solutions
  7. 19:30Vectorization
  8. 21:30Overloads
  9. 23:25Transform with Use
  10. 24:55Data Race
  11. 26:20Implementation with Windows
  12. 27:35Parallel
  13. 31:50Conditionals
  14. 43:55Solution
  15. 45:45My preferred solution
  16. 59:25Exception in the promise
~/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.