Hacker News new | ask | show | jobs
by yangl1996 2304 days ago
Rust compiler forbids multiple threads to access the same memory location not protected by a Mutex.
1 comments

That is, only when said memory location is accessed mutably. Immutable references are perfectly ok to follow concurrently.