Concurrency: Promise, sync + goroutines, std::thread/std::sync, <thread>
#std::thread runs operating-system threads (spawn, join, and scope for threads that borrow local data). std::sync provides Arc (shared ownership across threads), Mutex and RwLock, atomics and mpsc channels. The compiler's Send and Sync checks reject data races at compile time. For many concurrent I/O tasks, async Rust on the tokio runtime (tokio::spawn, join!, select!) is the usual choice.
Complete program
Complete program. Standard library: ships with Rust, no install.
Most used: thread::spawn, thread::scope, JoinHandle::join, Arc, Mutex, RwLock, mpsc::channel, AtomicUsize, tokio::spawn for async.