IT lexicon Programming Race condition

Race condition

Programming På svenska → Updated: 2026-05-23

A bug that surfaces when two threads/processes "race" each other and the result depends on who gets there first.

Classic: two users book the last seat simultaneously — both read "1 seat left", both book, you're overbooked. Fix: locks, atomic operations, transactional databases.

← Back to the lexicon