| What it is | Tools for concurrent programming in Rust: channels, queues, atomics and scoped threads | Simple work-stealing data parallelism for Rust | Compact, fast mutexes, read-write locks and condition variables for Rust | Blazing fast concurrent HashMap for Rust |
| Features | - multi-producer multi-consumer channels (crossbeam-channel)
- work-stealing deques for task schedulers
- bounded ArrayQueue and unbounded SegQueue
- epoch-based memory reclamation for lock-free data structures
- AtomicCell, ShardedLock, Parker, WaitGroup and Backoff
- scoped threads that borrow from the stack
- many features usable in no_std environments
| - parallel iterators: change iter() to par_iter()
- work-stealing scheduler that adapts task splitting dynamically
- join and scope for creating parallel tasks by hand
- custom thread pools alongside the global pool
- data-race freedom guaranteed by its APIs
| - Mutex and Once in 1 byte, Condvar and RwLock in 1 word
- Uncontended lock and unlock in a single atomic operation
- Adaptive spinning before parking the thread
- Task-fair RwLock with downgradable and upgradable read locks
- Condvar without spurious wakeups
- Optional deadlock detection and serde support
| - drop-in replacement for RwLock<HashMap>
- methods take &self, so it can be shared in an Arc and modified from many threads
- HashMap-like API
- optional serde and rayon support
|