`std::thread::spawn` runs work in parallel; `move` closures transfer ownership. `Send` marks types safe to move across threads and `Sync` safe to share by reference. The compiler rejects data races instead of leaving them to testing.
← Rust theorytheory 0/50 · 0%
Concurrency · medium
31. Threads and Send/Sync
Fearless concurrency, checked by types.
Check your understanding
1. What does Sync mean?
2. Rc is not Send because…