Account
LESSON 57 OF 96

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

C++ practice problems

3 related C++ topics

In-review topics are curriculum-linked challenge plans, not yet complete runnable tasks.

Progress is saved on this device.