by staticassertion · 5y ago · 0 comments
I typically think of a race condition an issue with concurrency where data might be modified by another thread which causes the program to return incorrect results.
Data race vs race condition:
A race condition happens when data/state is mutated because of the order in which concurrent processes occur. This could happen with threads, message passing, or many other ways.
I think this is distinct from deadlock which occurs when there is at least one circular dependency in the order when different "processes" must perform their operations.