False sharing and constructive sharing
CPU and Memory in the Exchange Data Path · 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
Detect independent fields sharing a coherence line
- 02
Use alignment without bloating every type
- 03
Recognize when colocating read-mostly data helps
Hands-on exercise
Repair a false-sharing benchmark and compare layout cost.
What a good result looks like
Before/after layout, throughput and tail-latency evidence.
APPLY WHAT YOU LEARN
3 related C++ topicsC++ practice problems
01Detect False Sharing from a Memory Access TraceConcurrency · MediumIn review02Build a Persistent Replayable Exchange Event JournalHFT Systems · HardIn review03Detect a BBO Change from Batched UpdatesHFT Systems · MediumIn review
In-review topics are curriculum-linked challenge plans, not yet complete runnable tasks.
Progress is saved on this device.