Insights derived from a talk by Gašper Ažman
For decades, developers have tried to manage concurrency using threads, mutexes, queues and custom scheduling logic.
These approaches work, but they come with persistent problems:
The root issue is a mismatch between how systems execute and how developers write code because hardware is flat, but code is hierarchical.
Bridging that gap has always required manual effort.
Traditionally, running code meant assigning it to a thread, and achieving concurrency required creating more threads.
C++26 offers a different model.
Instead of focusing on threads, it introduces execution as a first-class concept:
Developers can reason about execution without directly managing threads.
At the center of this model is the sender/receiver abstraction.
Think of it as a way to describe:
These can be composed into pipelines that describe entire workflows.
Patterns like running multiple operations and taking the first result, chaining asynchronous steps together or fanning work out and combining the results exemplify a more declarative approach to concurrency.
One of the biggest improvements is structured concurrency, where work is organized into well-defined lifetimes and relationships as opposed to loosely connected tasks. This enables automatic cancellation propagation, clear task ownership and a predictable execution flow.
For example:
Structured concurrency ultimately removes significant complexity and risk.
Modern systems often require multiple layers of asynchronous logic:
Without structure, these layers quickly become difficult to manage. However, with execution-based design, pipelines are composable and reusable. Each layer cleanly expresses intent, and complexity can be contained instead of spreading across the system. Even multilayer asynchronous workflows can be expressed cleanly.
One of this model’s more surprising aspects is that concurrency does not require multiple threads.
Using primitives like sync_wait, a single thread can reduce synchronization issues and enable more efficient resource usage and simpler execution models by:
In concurrent systems, production issues often stem from uncoordinated task lifetimes, hidden dependencies and manual synchronization
Structured execution addresses these directly by eliminating:
In well-structured systems:
C++ is moving toward a clearer separation between what the system does and how it executes.
With this separation in place, engineers can:
This division also concentrates expertise where it belongs, i.e., library authors handle execution details, and application developers use higher-level abstractions.
C++26 introduces the core vocabulary and model, including concepts and terminology, abstractions for execution and foundational APIs.
However, it does not provide complete implementations. In practice:
This is a framework for interoperability, not a single, monolithic solution.
C++26 organizes complexity. It doesn’t eliminate it.
Instead of ad hoc threading models, custom concurrency frameworks and repetitive patterns across teams, developers get a shared model and composable primitives, and they have a way to consistently describe execution.
These organizing principles enable systems that are more powerful and easier to reason about, and easy to bridge with any other paradigm.
C++26 marks a shift from managing concurrency manually to designing it systematically.
At Citadel Securities, we actively engage with the C++ community because we believe contribution benefits both the broader developer ecosystem and our firm. We are proud of the role our C++ committee members and colleagues play in helping advance the field.
Insights derived from a talk by Gašper Ažman
For decades, developers have tried to manage concurrency using threads, mutexes, queues and custom scheduling logic.
These approaches work, but they come with persistent problems:
The root issue is a mismatch between how systems execute and how developers write code because hardware is flat, but code is hierarchical.
Bridging that gap has always required manual effort.
Traditionally, running code meant assigning it to a thread, and achieving concurrency required creating more threads.
C++26 offers a different model.
Instead of focusing on threads, it introduces execution as a first-class concept:
Developers can reason about execution without directly managing threads.
At the center of this model is the sender/receiver abstraction.
Think of it as a way to describe:
These can be composed into pipelines that describe entire workflows.
Patterns like running multiple operations and taking the first result, chaining asynchronous steps together or fanning work out and combining the results exemplify a more declarative approach to concurrency.
One of the biggest improvements is structured concurrency, where work is organized into well-defined lifetimes and relationships as opposed to loosely connected tasks. This enables automatic cancellation propagation, clear task ownership and a predictable execution flow.
For example:
Structured concurrency ultimately removes significant complexity and risk.
Modern systems often require multiple layers of asynchronous logic:
Without structure, these layers quickly become difficult to manage. However, with execution-based design, pipelines are composable and reusable. Each layer cleanly expresses intent, and complexity can be contained instead of spreading across the system. Even multilayer asynchronous workflows can be expressed cleanly.
One of this model’s more surprising aspects is that concurrency does not require multiple threads.
Using primitives like sync_wait, a single thread can reduce synchronization issues and enable more efficient resource usage and simpler execution models by:
In concurrent systems, production issues often stem from uncoordinated task lifetimes, hidden dependencies and manual synchronization
Structured execution addresses these directly by eliminating:
In well-structured systems:
C++ is moving toward a clearer separation between what the system does and how it executes.
With this separation in place, engineers can:
This division also concentrates expertise where it belongs, i.e., library authors handle execution details, and application developers use higher-level abstractions.
C++26 introduces the core vocabulary and model, including concepts and terminology, abstractions for execution and foundational APIs.
However, it does not provide complete implementations. In practice:
This is a framework for interoperability, not a single, monolithic solution.
C++26 organizes complexity. It doesn’t eliminate it.
Instead of ad hoc threading models, custom concurrency frameworks and repetitive patterns across teams, developers get a shared model and composable primitives, and they have a way to consistently describe execution.
These organizing principles enable systems that are more powerful and easier to reason about, and easy to bridge with any other paradigm.
C++26 marks a shift from managing concurrency manually to designing it systematically.
At Citadel Securities, we actively engage with the C++ community because we believe contribution benefits both the broader developer ecosystem and our firm. We are proud of the role our C++ committee members and colleagues play in helping advance the field.