
Concurrent and Parallel Programming in Rust: Threads, Async, and Lock-Free Patterns (Modern Systems Programming with Rust)
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
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.
More details
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.