Please enable JavaScript.
Coggle requires JavaScript to display documents.
Fearless concurrency (Questions (let tx1 = mpsc::Sender::clone(&tx); ?…
Fearless concurrency
Questions
-
-
Message-passing concurrency, where channels send messages between threads
Shared-state concurrency, where multiple threads have access to some piece of data
The Sync and Send traits, which extend Rust’s concurrency guarantees to user-defined types as well as types provided by the standard library
-
-
-
Mutex
-
When you’re done with the data that the mutex guards, you must unlock the data so other threads can acquire the lock