Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How Rust Achieves Thread Safety. Parent comment
See 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
There are no comments on this comment yet.
See 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:
I would argue you have a race condition but not a data race.