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.
Data Races are a type of race condition that arise when non-synchronized threads try to access and mutate a memory location.
Top comments (0)