Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

race condition

A bug where the result depends on which thread happens to get there first.

A race condition occurs when correctness depends on the timing of unsynchronized accesses to shared state, at least one of them a write.

Loading interactive…

Examples

  • Two threads each running count++ 1,000 times can finish below 2,000, because each ++ is a read, an add and a write.

Read the full section →