3 ms·
"Data race" is a more specific term than "race condition." See http://blog.regehr.org/archives/490 http://blog.regehr.org/archives/490 for more. But the TL;DR
by steveklabnik 11y ago
"Data race" is a more specific term than "race condition."
See http://blog.regehr.org/archives/490 http://blog.regehr.org/archives/490 for more. But the TL;DR is:
A data race happens when there are two memory accesses in a program where both:
* target the same location
* are performed concurrently by two threads
* are not reads
* are not synchronization operations
I would argue you have a race condition but not a data race.