race condition
A bug where the result depends on which thread happens to get there first.
A race condition is a timing-dependent correctness bug in which the outcome depends on the relative order of events in different threads; data races are one cause, but a program with only atomic accesses can still have race conditions (check-then-act).
See also