Semantics of transactional memory and automatic mutual exclusion

  • Authors:
  • Martín Abadi;Andrew Birrell;Tim Harris;Michael Isard

  • Affiliations:
  • Microsoft Research, Silicon Valley, University of California, Santa Cruz, and Collège de France;Microsoft Research, Silicon Valley;Microsoft Research, Cambridge;Microsoft Research, Silicon Valley

  • Venue:
  • ACM Transactions on Programming Languages and Systems (TOPLAS)
  • Year:
  • 2011

Quantified Score

Hi-index 0.02

Visualization

Abstract

Software Transactional Memory (STM) is an attractive basis for the development of language features for concurrent programming. However, the semantics of these features can be delicate and problematic. In this article we explore the trade-offs semantic simplicity, the viability of efficient implementation strategies, and the flexibility of language constructs. Specifically, we develop semantics and type systems for the constructs of the Automatic Mutual Exclusion (AME) programming model; our results apply also to other constructs, such as atomic blocks. With this semantics as a point of reference, we study several implementation strategies. We model STM systems that use in-place update, optimistic concurrency, lazy conflict detection, and rollback. These strategies are correct only under nontrivial assumptions that we identify and analyze. One important source of errors is that some efficient implementations create dangerous “zombie” computations where a transaction keeps running after experiencing a conflict; the assumptions confine the effects of these computations.