Rust Atomics and Locks 中文翻译
简介
《Rust Atomics and Locks》by Mara Bos 是一本围绕 Rust 并发底层原语(atomics、锁、内存排序、操作系统支撑等)的实用书籍。 总体来说,它不是一本入门 Rust 的书,而是专门针对并发和底层细节的深度资料。
目标读者
- 对并发和底层原理感兴趣的 Rust 程序员
- 对跨语言并发机制感兴趣的工程师
- 已经具备基本 Rust 并发经验的进阶读者
内容目录
序
前言
第 1 章:Rust 并发基础(Basics of Rust Concurrency)
第 2 章:原子操作(Atomics)
第 3 章:内存顺序(Memory Ordering)
- 重排序与优化(Reordering and Optimizations)
- 内存模型(The Memory Model)
- Happens-Before 关系(Happens-Before Relationship)
- 宽松排序(Relaxed Ordering)
- 释放与获取排序(Release and Acquire Ordering)
- 消费排序(Consume Ordering)
- 顺序一致排序(Sequentially Consistent Ordering)
- 内存栅栏(Fences)
- 常见误解(Common Misconceptions)
- 总结(Summary)
第 4 章:构建我们自己的自旋锁(Building Our Own Spin Lock)
- 一个最小的实现(A Minimal Implementation)
- 一个不安全的自旋锁(An Unsafe Spin Lock)
- 使用锁守卫的安全接口(A Safe Interface Using a Lock Guard)
- 总结(Summary)
第 5 章:构建我们自己的通道(Building Our Own Channels)
第 6 章:构建我们自己的 “Arc”(Building Our Own “Arc”)
第 7 章:理解处理器(Understanding the Processor)
第 8 章:操作系统原语(Operating System Primitives)
第 9 章:构建我们自己的锁(Building Our Own Locks)
第 10 章:思路与灵感(Ideas and Inspiration)
翻译进度
- 第 8 章:操作系统原语(Operating System Primitives)
- 第 9 章:构建我们自己的锁(Building Our Own Locks)
- 第 10 章:思路与灵感(Ideas and Inspiration)