Transactional memory

James R. Larus, Christos Kozyrakis

Communications of the ACM · 2008 · 237 citations · 32 references

DOIFull text

Open access

Concepts

TL;DR

Lock‑free data structures enable concurrent processes to operate on shared data without mutual exclusion, thereby avoiding priority inversion, convoying, and deadlock. The paper introduces transactional memory, a multiprocessor architecture designed to make lock‑free synchronization as efficient and easy to use as conventional mutual‑exclusion techniques. Transactional memory lets programmers define customized read‑modify‑write operations that span multiple, independently chosen words of memory, implemented via straightforward extensions to any multiprocessor cache‑coherence protocol. Simulation results show that transactional memory matches or outperforms the best known locking techniques for simple benchmarks, even in the absence of priority inversion, convoying, and deadlock.

Abstract

A shared data structure is lock-free if its operations do not require mutual exclusion. If one process is interrupted in the middle of an operation, other processes will not be prevented from operating on that object. In highly concurrent systems, lock-free data structures avoid common problems associated with conventional locking techniques, including priority inversion, convoying, and difficulty of avoiding deadlock. This paper introduces transactional memory, a new multiprocessor architecture intended to make lock-free synchronization as efficient (and easy to use) as conventional techniques based on mutual exclusion. Transactional memory allows programmers to define customized read-modify-write operations that apply to multiple, independently-chosen words of memory. It is implemented by straightforward extensions to any multiprocessor cache-coherence protocol. Simulation results show that transactional memory matches or outperforms the best known locking techniques for simple benchmarks, even in the absence of priority inversion, convoying, and deadlock.

References

32