C++ parallel programming models
summary
Quick practical tour of four concrete models and when each fits: threads, atomics, mutexes for low‑level building blocks and lockfree or long‑running services; std::async futures promises for simple task spawning but lacking composability and scheduling control; coroutines lack scheduler (C++20) for cooperative async IO but require a scheduler and coroutine‑aware sync to avoid blocking threads; and C++17 parallel algorithms with execution policies for data‑parallel loops. Mixing models is difficult and C++26 hopes to add RCU and hazard pointers for concurrent data structures.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker background
- 1:28Why parallel programming matters
- 4:41Unstructured parallelism model
- 13:42Task-based parallelism model
- 21:04Cooperative multitasking with coroutines
- 30:49Concurrency vs parallelism explained
- 41:39Data parallelism with C++17
- 51:28Mixing parallel programming models
- 57:35Summary and real-time systems
- 58:17Q&A session
