1 min read

Race Condition vs Data Race

Related: Software Engineering

Race Condition

A race condition occurs when the timing or order of execution of a piece of code affects the correctness.

Data Race

A data race occurs in a multithreaded environment when different threads obtain read and write access to the same mutable object without proper access synchronisation.


Race condition vs. Data Race: the differences explained - SwiftLee