Two accesses to the same memory location form a data race when they come from different threads, at least one is a write, at least one is not atomic, and nothing orders one before the other. In C and C++ a program with a data race has undefined behaviour.
Computer Science · Glosarium