Principles of Transactional Memory (Synthesis Lectures on Distributed Computing Theory)
暫譯: 事務記憶體原則(分散計算理論綜合講座)
Rachid Guerraoui, Michal Kapalka
- 出版商: Morgan & Claypool
- 出版日期: 2010-11-01
- 售價: $1,760
- 貴賓價: 9.5 折 $1,672
- 語言: 英文
- 頁數: 194
- 裝訂: Paperback
- ISBN: 1608450112
- ISBN-13: 9781608450114
海外代購書籍(需單獨結帳)
相關主題
商品描述
Transactional memory (TM) is an appealing paradigm for concurrent programming on shared memory architectures. With a TM, threads of an application communicate, and synchronize their actions, via in-memory transactions. Each transaction can perform any number of operations on shared data, and then either commit or abort. When the transaction commits, the effects of all its operations become immediately visible to other transactions; when it aborts, however, those effects are entirely discarded. Transactions are atomic: programmers get the illusion that every transaction executes all its operations instantaneously, at some single and unique point in time. Yet, a TM runs transactions concurrently to leverage the parallelism offered by modern processors. The aim of this book is to provide theoretical foundations for transactional memory. This includes defining a model of a TM, as well as answering precisely when a TM implementation is correct, what kind of properties it can ensure, what are the power and limitations of a TM, and what inherent trade-offs are involved in designing a TM algorithm. While the focus of this book is on the fundamental principles, its goal is to capture the common intuition behind the semantics of TMs and the properties of existing TM implementations. Table of Contents: Introduction / Shared Memory Systems / Transactional Memory: A Primer / TM Correctness Issues / Implementing a TM / Further Reading / Opacity / Proving Opacity: An Example / Opacity vs.\ Atomicity / Further Reading / The Liveness of a TM / Lock-Based TMs / Obstruction-Free TMs / General Liveness of TMs / Further Reading / Conclusions
商品描述(中文翻譯)
事務性記憶體(Transactional Memory, TM)是一種對於共享記憶體架構的並行程式設計非常吸引人的範式。在 TM 中,應用程式的執行緒透過記憶體中的事務進行通信和同步其行為。每個事務可以對共享數據執行任意數量的操作,然後選擇提交或中止。當事務提交時,所有操作的效果會立即對其他事務可見;然而,當它中止時,這些效果則會完全被丟棄。事務是原子性的:程式設計師會有一種錯覺,認為每個事務在某個單一且獨特的時間點瞬間執行所有操作。然而,TM 會並行執行事務,以利用現代處理器所提供的平行性。本書的目的是提供事務性記憶體的理論基礎。這包括定義 TM 的模型,以及準確回答 TM 實現何時是正確的、它可以確保什麼樣的屬性、TM 的優勢和限制是什麼,以及設計 TM 演算法時涉及的固有權衡。雖然本書的重點在於基本原則,但其目標是捕捉 TM 語義背後的共同直覺以及現有 TM 實現的屬性。
目錄:
引言 / 共享記憶體系統 / 事務性記憶體:入門 / TM 正確性問題 / 實現 TM / 進一步閱讀 / 不透明性 / 證明不透明性:範例 / 不透明性與原子性 / 進一步閱讀 / TM 的活性 / 基於鎖的 TM / 無阻塞 TM / TM 的一般活性 / 進一步閱讀 / 結論