March 2026
Intermediate
318 pages
7h 52m
English
While the static safety guarantees of Rust work extremely well in programs using only one thread, the act of running code concurrently across multiple threads complicates nearly every aspect of programming. As we'll see, Rust is still able to provide some compile-time safety guarantees in multithreaded environments. This is a claim that very few other languages can make, and it led Rust's creators to describe it as a language of "fearless concurrency."
In this chapter, we'll examine several aspects of writing multithreaded code with Rust, including Rust's safety guarantees in concurrent environments and common techniques for working with threads.
In this chapter, we're going to cover the following main topics:
Read now
Unlock full access