How to reproduce locks and race conditions safely

Build Locksmith, hands-on concurrency failure demos with mutexes, races, atomics.

  • Difficulty Intermediate
  • Parts 10
  • Stack mutexes, races, atomics

What you are learning

Locksmith is hands-on concurrency failure demos. The teaching focus is Concurrency (mutexes, races, atomics).

Work in order. Early parts set vocabulary and environment; later parts assume the earlier checkpoints.

How to use these lessons

Read the goal, open the matching GitHub folder, complete the lab or exercises, then return for the explanation. If a command fails, check you are in the numbered folder first.

Open the Locksmith GitHub repo →

Parts in order

Each chapter below is one checkpoint in this lab.