DEV Community

Pankaj Sharma
Pankaj Sharma

Posted on • Edited on

In a nutshell: Race Conditions

Race condition is a term commonly used in scenarios where outcome is non-deterministic, as the outcome depends on the order in which relevant events occur. For example, in a concurrent program with non-synchronized threads trying to write to console, the order of console writes is non-deterministic. In short, it is a term used to represent an non-deterministic outcome.

Race Condition

Data Races are a type of race condition that arise when non-synchronized threads try to access and mutate a memory location.

Data Races

Top comments (0)