๐Ÿงต C++ Concurrency and Parallelism
Home Chapters Examples Diagrams Bibliography GitHub โ†—
  1. Home
  2. Practice: Design, Containers, and a Full Example
Part 8 4 chapters

Practice: Design, Containers, and a Full Example

Coding practices, design and architecture patterns, concurrency in containers, and an end-to-end project that ties the book together.

Doc 30

Coding Practices for Concurrency

Immutability, RAII locking, const-correctness as a concurrency tool, minimizing and confining shared state, and the naming and documentation conventions that make a threading contract legible without reading the implementation.

15 minRead โ†’
Doc 31

Design and Architecture Patterns

Pipeline and SEDA architectures, sharding and the single-writer pattern, the reactor and proactor behind half-sync/half-async, fan-out/fan-in, and a decision framework for matching a concurrency architecture to a latency or throughput goal.

16 minRead โ†’
Doc 32

Concurrency in Containers

cgroup CPU quota versus cpuset, why hardware_concurrency() lies inside a container, sizing pools to the real quota, and pinning under an orchestrator.

16 minRead โ†’
Doc 33

Full Example: Ingest, Match, Publish

An end-to-end low-latency pipeline (ingest, match, publish) that composes the concurrency, lock-free messaging, and observability patterns from earlier chapters, measured under load.

26 minRead โ†’
โ† Previous part Correctness, Errors, and Debugging Next part โ†’ Appendix
C++ Concurrency and Parallelism
Tutorial content: CC BY 4.0. Sample code: Apache 2.0.
Source on GitHub โ†—  ยท  File an issue โ†—