買這商品的人也買了...
-
$3,750$3,563 -
$790$616 -
$720$562 -
$780$616 -
$580$383 -
$954$906 -
$780$616 -
$1,750$1,663 -
$663算法訓練營:海量圖解 + 競賽刷題 (進階篇)
-
$980$774 -
$834$792 -
$1,580$1,501 -
$450$355 -
$580$458 -
$474深度探索 Go語言 — 對象模型與 runtime 的原理、特性及應用
-
$780$616 -
$800$632 -
$1,890$1,796 -
$654$621 -
$556Go 程序開發實戰寶典
-
$505深入Go語言:原理、關鍵技術與實戰
-
$680$530 -
$620$490 -
$780$616 -
$980$774
相關主題
商品描述
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 very difficult. Even in the most well-used libraries, memory ordering bugs are not uncommon.
In this practical book, Mara Bos, leader 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 roles of the operating system all fit together.
With this guide, you'll learn:
- How Rust's type system works exceptionally well for programming concurrency correctly
- All about mutexes, condition variables, atomics, and memory ordering
- What happens in practice with atomic operations on Intel and ARM processors
- How locks are implemented with support from the operating system
- How to write correct code that includes concurrency, atomics, and locks
- How to build your own locking and synchronization primitives correctly
商品描述(中文翻譯)
Rust 程式語言非常適合用於並發,並且其生態系統中有許多庫包含了各種並發資料結構、鎖等。然而,正確實現這些結構可能非常困難。即使在最常用的庫中,記憶體排序錯誤也並不罕見。
在這本實用的書中,Rust 庫團隊的領導者 Mara Bos 幫助各級 Rust 程式設計師清楚理解低階並發。您將學習有關原子操作和記憶體排序的所有知識,以及它們如何與基本的作業系統 API 結合以構建常見的原語,如互斥鎖(mutexes)和條件變數(condition variables)。完成後,您將對 Rust 的記憶體模型、處理器以及作業系統的角色如何相互配合有清晰的理解。
通過這本指南,您將學到:
- Rust 的類型系統如何非常有效地用於正確編寫並發程式
- 有關互斥鎖、條件變數、原子操作和記憶體排序的所有知識
- 在 Intel 和 ARM 處理器上進行原子操作時實際發生的情況
- 鎖是如何在作業系統的支持下實現的
- 如何編寫包含並發、原子操作和鎖的正確程式碼
- 如何正確構建自己的鎖定和同步原語
作者簡介
Mara Bos maintains the Rust standard library and builds real time control systems in Rust. As team lead of the Rust library teams, she knows all the ins and outs of the language and the standard library. In addition, she has been working with concurrent real time systems for years at the company she founded. 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 to practice.
作者簡介(中文翻譯)
Mara Bos 維護 Rust 標準庫並在 Rust 中構建實時控制系統。作為 Rust 庫團隊的團隊負責人,她對該語言及其標準庫的各個細節了如指掌。此外,她在自己創立的公司中,已經從事並發實時系統的工作多年。維護 Rust 生態系統中使用最廣泛的庫,並每天在安全關鍵系統上工作,使她獲得了實踐經驗,能夠理解理論並將其應用於實際。