race condition
A bug where a program's result depends on how the scheduler happens to interleave its threads.
A race condition arises when a sequence of operations on shared state (a read-modify-write or a check-then-act) can be interleaved with another thread's, so some schedules produce a wrong result.