beginnertermWeb foundationsWeb foundations / Backend and APIs / Race Conditions
BeginnerNot yet reviewed

Race Conditions

A flaw in concurrent systems where the output is unexpectedly dependent on the sequence or timing of uncontrollable execution steps.

Definition

A flaw in concurrent systems where the output is unexpectedly dependent on the sequence or timing of uncontrollable execution steps.

Use case

Two requests reading an inventory count of 1 simultaneously and both approving an order, resulting in negative inventory.

Related terms

Articles

Race condition

Wikipedia · Article · link checked 2026-10-16

When timing decides the outcome, with the classic inventory example.

Suggest a change