3 ms·
Fine, but in practice a data race is just a special case of a race condition so my point still stands. Most multi-threaded code with races is more like my examp
by bjourne 3y ago
Fine, but in practice a data race is just a special case of a race condition so my point still stands. Most multi-threaded code with races is more like my example than the author's and Rust will not magically prevent such race conditions.
- pjmlp 3y agoIndeed, I like your example, usually I go after external resources being accessed from same threads, database accesses without proper transaction management, or OS IPC, where the Rust threads don't have any visibility about what the other processes are doing.