Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Race Condition

Also known as: race hazard

1 min read Updated November 10, 2026

Definition A bug where a program's result depends on which of two simultaneous actions finishes first.

What it is

When two processes touch the same data at nearly the same time, the outcome can change depending on timing. The bug appears randomly and is hard to reproduce.

Why it matters for your business

In shops and booking systems it can cause double sales or double bookings.

Real-world example

Two customers pay for the last pair of shoes in an online shop at the same second, and the system sells the same stock twice.

Design Corner tip

Ask your developer to lock stock and booking records while an order is being processed.