
Rust Atomics and Locks
Mara Bos · 2022
Programming and computer science › Rust and text editors
#2,066 most recommended
Hacker News
26
mentions by 20 people · top 13% of 15,732 books
Open Library
—
No ratings yet
5 want to read
Wikipedia
—
No article yet
About the book
Rust's concurrency primitives, from the low-level atomic operations in the standard library up to the higher-level tools built on them, such as mutexes, condition variables, channels, reference counting, and locks. It covers how these work on real hardware and operating systems, including the basics of the Rust memory model. Correct concurrent code depends on understanding atomics and memory ordering, not just on using the standard library's synchronisation types as black boxes. The author argues that the higher-level primitives can all be derived from a small set of atomic operations and ordering guarantees. The book builds those primitives step by step, so readers can reason about why they are correct and about the performance costs involved.
Written by Claude from what it knows of this book.
What Hacker News says 90% recommend · 0% critical
In the commenters’ own words
The recently published book Rust Atomics and Locks by Mara Bos has an interesting section on why Rust uses the futex syscall directly. > ... However, there…
I'm a little nervous about the correctness of the memory orderings in this project, e.g. Two acquires back to back are unnecessary here. In general, fetch_sub…
What Open Library readers say
No Open Library reader has rated it yet.
- 5 want to read
- 2 reading
- 0 have read
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
The threads it came up in
Details
- First published
- 2022
- ISBN
- 9781098119447
- Editions known
- 2 at Open Library
- Open Library
- OL27821848W
Read next: its neighbours on the mosaic
The Rust Programming LanguageSteve Klabnik · 2018 · recommended by 170 people · 4 people recommended both
Rust for RustaceansJon Gjengset · 2021 · recommended by 16 people · similar by subject and what people say about it
Rust in ActionTim McNamara · 2021 · recommended by 17 people · similar by subject and what people say about it
Programming RustJim Blandy · 2021 · recommended by 64 people · similar by subject and what people say about it
C Concurrency in ActionAnthony Williams · 2012 · recommended by 14 people · similar by subject and what people say about it
Algorithms for Modern HardwareSergey Slotin · 2022 · recommended by 15 people · similar by subject and what people say about it
A primer on memory consistency and cache coherenceDaniel J. Sorin · 2011 · recommended by 6 people · similar by subject and what people say about it
The art of multiprocessor programmingMaurice Herlihy · 2008 · recommended by 27 people · similar by subject and what people say about it
The architecture of open source applicationsAmy Brown · 2011 · recommended by 204 people · similar by subject and what people say about it
The garbage collection handbookJones, Richard · 2012 · recommended by 23 people · similar by subject and what people say about it
Elements of programmingAlexander A. Stepanov · 2009 · recommended by 31 people · similar by subject and what people say about it
Clean CodeRobert C. Martin · 2008 · recommended by 298 people · similar by subject and what people say about it
Building GitJames Coglan · 2021 · recommended by 19 people · similar by subject and what people say about it
Code QualityDiomidis Spinellis · 2006 · recommended by 3 people · loosely similar by subject
The design and evolution of C[plus plus]Bjarne Stroustrup · 1994 · recommended by 38 people · similar by subject and what people say about it
Crafting InterpretersRobert Nystrom · 2021 · recommended by 295 people · similar by subject and what people say about it
Understanding ComputationTom Stuart · 2013 · recommended by 13 people · similar by subject and what people say about it
Real World OCamlYaron Minsky · 2013 · recommended by 69 people · similar by subject and what people say about it
Programming PearlsJon Bentley · 1999 · recommended by 158 people · similar by subject and what people say about it
Modern CJens Gustedt · 2019 · recommended by 37 people · similar by subject and what people say about it
Ruby under a microscopePat Shaughnessy · 2014 · recommended by 32 people · similar by subject and what people say about it
Algorithms and data structuresNiklaus Wirth · 1986 · recommended by 8 people · similar by subject and what people say about it
Purely functional data structuresChris Okasaki · 1998 · recommended by 87 people · similar by subject and what people say about it
Modern C++ DesignAndrei Alexandrescu · 2001 · recommended by 29 people · similar by subject and what people say about it