Fearless concurrency - Using compute resources effectively
In this chapter, we will look at how to access the last of the important hardware resources: CPU cycles and with it, multiple CPU cores. We will learn about ways to write code in Rust that explicitly runs on multiple CPU cores using threads. We will learn about the ways things can go horribly wrong when we venture into the domain of parallel programming with threads, and how Rust helps us to keep our code safe. We will also look at a different concept for writing code that does many things concurrently, which is called asynchronous programming.
Here is the roadmap for this chapter: