Rust Atomics and Locks: Low-Level Concurrency in Practice
https://www.amazon.co.jp/Rust-Atomics-Locks-Low-level-Concurrency/dp/1098119444
The code here is not all the code in the book.
I'm just going to write down the parts that I find interesting.
Rust concurrency basics
operating atomic values