Computer Science / CS 0307 · Atom · ~20 seconds
The Race Condition
Video not yet published
to the StudyWalks catalog
to the StudyWalks catalog
State
A race condition is an outcome depending on the sequence or timing of uncontrollable events — the hazard that synchronization mechanisms, mutexes and semaphores among them, exist to prevent.
Show
Two transfers reading one balance at the same instant can both approve what one should.
Watch for
Timing bugs hide in tests that got lucky.