mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
559 B
559 B
Concurrency in Rust
-
Thanks to the Ownership pattern, Rust has a model of Fearless concurrency.
-
Rust aims to have a small runtime, so it doesn't support green threads.
- Crates exist to add support for green threads if needed.
- Instead, Rust relies on the OS threads, a model called 1-1.
-
Rust offers a number of constructs for sharing data between threads:
- Channel for a safe message passing approach.
- Mutex for managing shared state.
:rust:programming: