StateTrace
shared-counter atomic · 52.94 ns / atomic opA visual lab for becoming a quantitative developer + researcher. Eight stages from concurrency foundations to ML on finance, sequenced bottom-up. Click any node to open it.
37 nodes (9 cards, 28 stubs)55 prereq edges5 unlock-only edges8 bridge edges
Edge filters
Shared Countershared-counterStage 1 · L0 · atom · synchronization✓ written
Replaces: the belief that an increment on a shared integer is atomic, and that `volatile` makes it so. Two threads, one `int64_t`, one `+1` each, one million times: the expected final value is 2,000,000; the observed value is closer to 520,000. The lost updates expose the read-modify-write window that all of synchroni…