race condition

Sequence-dependent malfunction

A race condition is a software bug where a program's behavior depends on the unpredictable timing of events—typically when multiple processes or threads access shared data simultaneously.

The outcome varies based on which operation completes first: The crash was caused by a race condition in the database code.

The term comes from the image of processes "racing" each other, with results depending on which wins.

software

bug

Crawling creature or defect

critical section · atomicity · interleaving · concurrency · parallelism · starvation · non-blocking · non-determinism · context switch · preemption

timing

synchronization

Aligning timing across systems

duration · instant · order of operations · latency · simultaneity · timestamp · execution order · scheduling · window · overlap

competition

sprint

Brief maximum-speed effort

  • relayStage-by-stage transmission
  • trackPath or monitored route
  • swimmingLocomotion through water

cycling · marathon · triathlon · running · speedway · derby · steeplechase · regatta · biathlon · decathlon

Opposites
execution determinism

race conditiondeterminism

Doctrine of causal necessity

synchronization state

race conditionmutual exclusion

Cannot occur together

correctness/bug status

race conditiondata integrity

Reliability of stored information

Family

race, condition, racing, racer, racetrack

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Rated G