Concurrent and Parallel Programming in Rust: Threads, Async, and Lock-Free Patterns

Modern Systems Programming with Rust

Cover of Concurrent and Parallel Programming in Rust: Threads, Async, and Lock-Free Patterns

EPUB · English

Price and availability

EPUB eBookUS store

$6.99

Sign in to buy

You’ll review your order and final price before payment.

Download from your library after delivery. Protected eBooks need a compatible reading app.

For personal use under the eBook licence.

Territorial availability

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Distributed via Draft2Digital
Published
1 March 2026
ISBN
9798233723186
Subjects
Computer programming / software development, Algorithms & data structures, Programming & scripting languages: general, Computer programming / software engineering, Algorithms and data structures, Programming and scripting languages: general

About this book

Master the art of fearless concurrency and build blazing-fast, memory-safe systems with Rust.Modern software demands maximum performance. From high-performance database engines to massive web servers, extracting every ounce of power from multi-core processors is no longer optional. But concurrent programming is notoriously difficult, plagued by data races, deadlocks, and unpredictable memory corruption. Rust changes the rules.Concurrent and Parallel Programming in Rust is the definitive guide for intermediate developers and systems programmers who want to master multithreading, asynchronous architectures, and lock-free data structures. By leveraging Rust's strict ownership model and borrow checker, you will learn how to design complex concurrent systems that are mathematically proven to be free of data races before they even compile.This book strips away the abstractions to reveal exactly how your code interacts with the operating system scheduler, CPU caches, and hardware memory controllers. You will move systematically from foundational threading concepts to the most advanced, ultra-low-latency lock-free patterns used in production.Inside, you will discover how to:Manage operating system threads, configure stack sizes, and safely transfer data ownership using message-passing channels.Optimize Mutex and read-write locks, avoid deadlocks through strict lock ordering, and conquer the physical realities of lock contention.Utilize work-stealing schedulers and the Rayon crate to distribute heavy computational workloads perfectly across physical CPU cores.Demystify the async/await model, understand cooperative multitasking, and build scalable network services using executors like Tokio without blocking your threads.Master atomic variables, compare-and-swap loops, epoch-based memory reclamation, and strict memory ordering semantics to eliminate operating system bottlenecks.Implement bulkheads, backpressure, load shedding, and graceful shutdown sequences to ensure your architecture survives the chaos of real-world deployment.Stop guessing about thread safety. Equip yourself with the mechanical sympathy and architectural discipline required to engineer the world's most demanding software. Transform the terrifying complexity of concurrency into a predictable, high-performance asset.

Bibliographic data © Gardners Books Ltd.