4 ms·
I wasn't sure. After a bit of research, this seems to be a debate [1]. Using the common definitions, it's possible to have a data race that doesn't cause a race
by sa46 6y ago
I wasn't sure. After a bit of research, this seems to be a debate [1]. Using the common definitions, it's possible to have a data race that doesn't cause a race condition. [2] It's also possible to have a race condition without a data race.
[1] https://en.wikipedia.org/wiki/Race_condition#Data_race https://en.wikipedia.org/wiki/Race_condition#Data_race
[2] https://blog.regehr.org/archives/490 https://blog.regehr.org/archives/490
- Rusky 6y agoI would argue that "a data race that doesn't cause a race condition" is still, itself, a tiny race condition- just a contained one. But you're right, this is just choice of terminology. :)