Re:Lock-Free Rust: Crossbeam in 2019
by winstonewert on Wednesday January 30, 2019 @11:56AM
(#19036815)
No, Rust has locks and shared data structures. What it does is enforce their usage. It will be a compile error if you try to modify the same data structure from multiple threads without a lock.
[ Parent
| on HN ]
Re:Lock-Free Rust: Crossbeam in 2019
by steveklabnik on Wednesday January 30, 2019 @01:04PM
(#19037523)
You sometimes do not need a lock, depending. Scoped threads can have two different threads modify two different elements of a vector simultaneously without locks, for example.