Race condition

A timing bug: two things happen almost at once, and the result depends on which finishes first.

Also called: concurrency bug, double booking

Type
Term
Source
General
Language
SQL

In plain English

Classic example: two guests book the same night at the same second. Fixes involve locks, unique constraints or transactions.

Example

Two guests booked the same night at the same second: a race condition the unique index now prevents.

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30