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

Low Latency and High Throughput

Benchmarking without deception, the fast path, mechanical sympathy, and lock-free messaging.

Doc 18

Benchmarking Without Deception

Warmup and the cold-call bias, coordinated omission and why it hides the tail, percentiles versus the mean, wall-clock vs CPU time, and the repeatable harness this book's other chapters cite for their own benchmark claims.

17 minRead โ†’
Doc 19

The Low-Latency Fast Path

Three concrete moves that shrink tail latency: core pinning, buffer reuse, and zero allocation, the busy-poll versus block decision, keeping syscalls and branches off the hot path, and where kernel bypass fits.

16 minRead โ†’
Doc 20

Mechanical Sympathy

False sharing and the cache line, alignas and hardware_destructive_interference_size, struct layout, per-thread counters versus a single hot atomic, and the cache-line discipline that keeps hot data from fighting over a line.

15 minRead โ†’
Doc 21

Lock-Free Messaging and the Disruptor

Ring buffers revisited as a messaging substrate, the Disruptor pattern, batching and back-pressure, and the single-writer principle that makes it all safe.

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