News for hackers. Stuff that matters.
Re:Lock-Free Rust: Crossbeam in 2019 by pcwalton on Wednesday January 30, 2019 @01:02PM (#19037507)
The borrow checker allows two threads to share the same data structure immutably without locks. If you need to mutate the data structure from multiple threads, you need some kind of synchronization, and the borrow checker enforces that this synchronization is present. Rust doesn't prevent you from using synchronized shared mutable state, though of course if you want to program without any shared mutable state that's a perfectly valid option too.

There are no comments on this comment yet.