Hands-On Concurrency with Rust

Get to grips with modern software demands by learning the effective uses of Rust's powerful memory safety.

Hands-On Concurrency with Rust

Brian L. Troutwine

2 customer reviews
Get to grips with modern software demands by learning the effective uses of Rust's powerful memory safety.
Mapt Subscription
FREE
$30.00/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Hands-On Concurrency with Rust Book Cover
Hands-On Concurrency with Rust
$ 35.99
$ 25.20
Hands-On Functional Programming in RUST Book Cover
Hands-On Functional Programming in RUST
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781788399975
Paperback462 pages

Book Description

Most programming languages can really complicate things, especially with regard to unsafe memory access. The burden on you, the programmer, lies across two domains: understanding the modern machine and your language's pain-points. This book will teach you to how to manage program performance on modern machines and build fast, memory-safe, and concurrent software in Rust. It starts with the fundamentals of Rust and discusses machine architecture concepts. You will be taken through ways to measure and improve the performance of Rust code systematically and how to write collections with confidence. You will learn about the Sync and Send traits applied to threads, and coordinate thread execution with locks, atomic primitives, data-parallelism, and more.

The book will show you how to efficiently embed Rust in C++ code and explore the functionalities of various crates for multithreaded applications. It explores implementations in depth. You will know how a mutex works and build several yourself. You will master radically different approaches that exist in the ecosystem for structuring and managing high-scale systems.

By the end of the book, you will feel comfortable with designing safe, consistent, parallel, and high-performance applications in Rust.

Table of Contents

Chapter 1: Preliminaries – Machine Architecture and Getting Started with Rust
Chapter 3: The Rust Memory Model – Ownership, References and Manipulation
Chapter 4: Sync and Send – the Foundation of Rust Concurrency
Chapter 8: High-Level Parallelism – Threadpools, Parallel Iterators and Processes

What You Will Learn

  • Probe your programs for performance and accuracy issues
  • Create your own threading and multi-processing environment in Rust
  • Use coarse locks from Rust’s Standard library
  • Solve common synchronization problems or avoid synchronization using atomic programming
  • Build lock-free/wait-free structures in Rust and understand their implementations in the crates ecosystem
  • Leverage Rust’s memory model and type system to build safety properties into your parallel programs
  • Understand the new features of the Rust programming language to ease the writing of parallel programs

Authors

Table of Contents

Chapter 1: Preliminaries – Machine Architecture and Getting Started with Rust
Chapter 3: The Rust Memory Model – Ownership, References and Manipulation
Chapter 4: Sync and Send – the Foundation of Rust Concurrency
Chapter 8: High-Level Parallelism – Threadpools, Parallel Iterators and Processes

Book Details

ISBN 139781788399975
Paperback462 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Hands-On Functional Programming in RUST Book Cover
Hands-On Functional Programming in RUST
$ 35.99
$ 25.20
Rust Standard Library Cookbook Book Cover
Rust Standard Library Cookbook
$ 35.99
$ 25.20
Network Programming with Rust Book Cover
Network Programming with Rust
$ 35.99
$ 25.20
Kubernetes for Developers Book Cover
Kubernetes for Developers
$ 35.99
$ 25.20
Security with Go Book Cover
Security with Go
$ 31.99
$ 22.40
Kotlin Programming Cookbook Book Cover
Kotlin Programming Cookbook
$ 39.99
$ 28.00