๐Ÿงต C++ Concurrency and Parallelism
Home Chapters Examples Diagrams Bibliography GitHub โ†—
  1. Home
  2. Foundations
Part 1 4 chapters

Foundations

Concurrency versus parallelism, the machine underneath โ€” cores, SMT, cache, NUMA โ€” time and deadlines, and threads in modern C++.

Doc 1

Concurrency vs Parallelism

The two independent axes of concurrency and parallelism, the four execution models that result, and how to measure them precisely.

13 minRead โ†’
Doc 2

The Machine Underneath

The hardware concurrency sits on top of: cores, simultaneous multithreading, cache coherence, NUMA topology, and the scheduler's context-switch cost.

15 minRead โ†’
Doc 3

Time, Timers, and Deadlines

The clock taxonomy a concurrent service actually needs, monotonic time, timeouts, and propagating a deadline across a call chain.

13 minRead โ†’
Doc 4

Threads in Modern C++

std::thread and std::jthread, cooperative cancellation with stop_token, and the lifetime and ownership rules that govern joining versus detaching.

16 minRead โ†’
โ† Previous part Orientation Next part โ†’ Shared State and Synchronization
C++ Concurrency and Parallelism
Tutorial content: CC BY 4.0. Sample code: Apache 2.0.
Source on GitHub โ†—  ยท  File an issue โ†—