The C++ memory model and data-race freedom
Concurrent Trading Pipelines · Advanced → Expert
Structured lesson outlineThis lesson's video and full tutorial are not yet published. The learning objectives and exercises below outline what the finished lesson will cover.
Learning objectives
Focus on the underlying model and the engineering decisions rather than memorizing a single code snippet.
- 01
Define happens-before and conflicting actions
- 02
Recognize undefined behavior from data races
- 03
Separate compiler and CPU reordering models
Hands-on exercise
Analyze and repair a deliberately racy handoff.
What a good result looks like
A happens-before graph plus ThreadSanitizer evidence.
APPLY WHAT YOU LEARN
3 related C++ topicsC++ practice problems
01Build a Sliding-Window Market Data Rate MonitorHFT Systems · MediumIn review02Parse a Binary Market Data Packet with Bounds ChecksHFT Systems · MediumIn review03Implement a Memory-Mapped File RAII WrapperCore C++ · MediumIn review
In-review topics are curriculum-linked challenge plans, not yet complete runnable tasks.
Progress is saved on this device.