Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: