Bos Mara - Rust Atomics And Locks. Low-Level Concurrency In Practice.pdf
(
2626 KB
)
Pobierz
Rust Atomics
and Locks
Low-Level Concurrency in Practice
Mara Bos
Rust Atomics and Locks
The Rust programming language is extremely well suited
for concurrency, and its ecosystem has many libraries that
include lots of concurrent data structures, locks, and more.
But implementing those structures correctly can be difficult.
Even in the most well-used libraries, memory ordering bugs
are not uncommon.
In this practical book, Mara Bos, team lead of the Rust
library team, helps Rust programmers of all levels gain a
clear understanding of low-level concurrency. You’ll learn
everything about atomics and memory ordering and how
they’re combined with basic operating system APIs to build
common primitives like mutexes and condition variables.
Once you’re done, you’ll have a firm grasp of how Rust’s
memory model, the processor, and the role of the operating
system all fit together.
With this guide, you’ll learn:
“This book is incredible!
It’s exactly what I wanted
The Rustonomicon
to
cover on concurrency,
but far better than I
dared dream. Thorough
in all the right places.
Mara deserves a big
rest after this.”
Author of
The Rustonomicon
—Aria Beingessner
•
How Rust’s type system works exceptionally well for
programming concurrency correctly
memory ordering
•
All about mutexes, condition variables, atomics, and
•
What happens in practice with atomic operations on Intel
and ARM processors
operating system
•
How locks are implemented with support from the
•
How to write correct code that includes concurrency,
atomics, and locks
Mara Bos
maintains the Rust standard
library and builds real-time control
systems in Rust. As team lead of the
Rust library team, she knows all the
ins and outs of the language and the
standard library. In addition, she’s been
working with concurrent real-time
systems for years as founder and CTO
at Fusion Engineering. Maintaining the
most used library in the Rust ecosystem
and working daily on safety critical
systems has given her the hands-on
experience to both understand the
theory and bring it into practice.
•
How to build your own locking and synchronization
primitives correctly
RUST / PROGR AMMING L ANGUAGES
US $55.99
CAN $69.99
ISBN: 978-1-098-11944-7
Twitter: @oreillymedia
linkedin.com/company/oreilly-media
youtube.com/oreillymedia
Low-Level Concurrency in Practice
Rust Atomics and Locks
Mara Bos
Beijing
Boston Farnham Sebastopol
Tokyo
Rust Atomics and Locks
by Mara Bos
Copyright © 2023 Mara Bos. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (https://oreilly.com). For more information, contact our corporate/institu‐
tional sales department: 800-998-9938 or
corporate@oreilly.com.
Acquisitions Editor:
Suzanne McQuade
Development Editor:
Shira Evans
Production Editor:
Elizabeth Faerm
Copyeditor:
Liz Wheeler
Proofreader:
Penelope Perkins
December 2022:
First Edition
Indexer:
Ellen Troutman-Zaig
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Kate Dullea
Revision History for the First Edition
2022-12-14:
First Release
See
https://oreilly.com/catalog/errata.csp?isbn=9781098119447
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Rust Atomics and Locks,
the cover
image, and related trade dress are trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the author, and do not represent the publisher’s views.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use
of or reliance on this work. Use of the information and instructions contained in this work is at your
own risk. If any code samples or other technology this work contains or describes is subject to open
source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-098-11944-7
[LSI]
To all the Rust contributors who were waiting for me to
review their code while I was busy writing this book.
And to my loved ones, too, of course.
♥
Plik z chomika:
george.mouflon
Inne pliki z tego folderu:
Ali Atif, Bhatti Baber Majid - Spies In The Bits And Bytes. The Art Of Cyber Threat Intelligence.pdf
(53311 KB)
Adamatzky Andrew (ed.) - Actin Computation. Unlocking The Potential Of Actin Filaments For Revolutionary Computing Systems.pdf
(21268 KB)
Barolli Leonard, Petrakis Euripides G. M., Hussain Farookh (ed.) - Advances In Internet, Data & Web Technologies. The 14th International Conference On Emerging Internet, Data And Web Technologies (EID.pdf
(41071 KB)
Caldwell Craig - Story Structure And Development. A Guide For Animators, VFX Artistis, Game Designers, And XR Creators (Second Edition).epub
(90699 KB)
Agrawal Neha, Kumar Rohit, Tapaswi Shashikala - Cloud Computing Security. Strategies And Best Practices.pdf
(18062 KB)
Inne foldery tego chomika:
Android
Art
Artificial Intelligence
Biology
C(++)
Zgłoś jeśli
naruszono regulamin