Hands-On Concurrency with Rust
Writing safe and correct parallel programs is tough. Reasoning about concurrent memory modification is tough; efficiently exploiting the modern computing environment (with its multi-layered caches and deep execution pipelines) is also tough. Most systems programming languages add a further complication: unsafe memory access. The burden on you, the programmer, lies across two domains: understanding the modern machine and understanding your language's pain-points. Rust, with its safe memory model and strong type system, eases this last burden without sacrificing performance. This book will teach you to reason about program performance on modern machines and build fast, memory-safe, and concurrent software in Rust.
Offered by
Difficulty Level
Intermediate
Completion Time
15h24m
Language
English
About Book
Who Is This Book For?
This book is aimed at software engineers with a basic understanding of Rust who want to exploit the parallel and concurrent nature of modern computing environments, safely.
Hands-On Concurrency with Rust
- About Book
- Who Is This Book For?
- Book Content
Book content
chapters • 15h24m total length
Preliminaries: Machine Architecture and Getting Started with Rust
Sequential Rust Performance and Testing
The Rust Memory Model: Ownership, References and Manipulation
Sync and Send: the Foundation of Rust Concurrency
Locks: Mutex, Condvar, Barriers and RWLock
Atomics: The Primitives of Synchronization
Atomics: Safely Reclaiming Memory
High-Level Parallelism: Threadpools
FFI and Embedding: Combining Rust and Other Languages
Futurism: Near-Term Rust
Related Resources
Access Ready-to-Use Books for Free!
Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!