HFT CORE SYSTEMS

False sharing and constructive sharing

Lesson 11 of 96Phase 02: CPU and memory systems
Video lesson coming soon

The written objectives and hands-on lab are available now.

cppvalley on YouTube ↗

Learning objectives

What you should understand

  1. Detect independent fields sharing a coherence line
  2. Use alignment without bloating every type
  3. Recognize when colocating read-mostly data helps

Lab

Hands-on exercise

Repair a false-sharing benchmark and compare layout cost.

Deliverable

Evidence of completion

Before/after layout, throughput and tail-latency evidence.

Prerequisite
EP 10

Phase 02

CPU and memory systems

Full curriculum