= Race condition
{wiki=Race_condition}
A race condition is a situation in computer science, particularly in concurrent programming, where the behavior of software depends on the sequence or timing of uncontrollable events such as thread execution. This typically occurs in multi-threaded or distributed environments when multiple threads or processes access shared resources (like variables, memory, or files) without proper synchronization. In a race condition, if two or more threads attempt to modify the same shared resource simultaneously, the final outcome can become unpredictable, leading to inconsistent or incorrect results.
Back to article page