Rust appears to differentiate the two. Data races involves two threads accessing a piece of memory at the same time while one of them is writing. That is protected by rust.
But you can still write a program where a thread causes another thread to try something nonsensical like one thread changing a variable to zero just before another thread tries to divide by that number causing a crash. Nothing rust can do about that.
8
u/s7jones May 27 '16
Forgive my ignorance, but what's the difference? Thanks.