Chapter 8. High-Level Parallelism – Threadpools, Parallel Iterators and Processes
In previous chapters, we introduced the basic mechanisms of concurrency in the Rust—programming language. In Chapter 4, Sync and Send – the Foundation of Rust Concurrency, we discussed the interplay of the type system of Rust with concurrent programs, how Rust ensures memory safety in this most difficult of circumstances. In Chapter 5, Locks – Mutex, Condvar, Barriers and RWLock, we discussed the higher, so-called coarse, synchronization mechanisms available to us, common among many languages. In Chapter 6, Atomics – the Primitives of Synchronization, and Chapter 7, Atomics – Safely Reclaiming Memory, we discussed the finer synchronization primitives available on modern machines, exposed through Rust's concurrent memory model. This has all been well and good but, though we've done deep-dives into select libraries or data structures, we have yet to see the consequences of all of these tools on the structure...