Towards Transactional Memory Semantics for C plus

被引:0
作者
Shpeisman, Tatiana [1 ]
Adl-Tabatabai, Ali-Reza [1 ]
Geva, Robert [1 ]
Ni, Yang [1 ]
Welc, Adam [1 ]
机构
[1] Intel Corp, Santa Clara, CA 95052 USA
来源
SPAA'09: PROCEEDINGS OF THE TWENTY-FIRST ANNUAL SYMPOSIUM ON PARALLELISM IN ALGORITHMS AND ARCHITECTURES | 2009年
关键词
Atomicity; C plus; Serializability; Synchronization; Transactional Memory;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Transactional memory (TM) eliminates many problems associated with lock-based synchronization. Over recent years, much progress has been made in software and hardware implementation techniques for TM. However, before transactional memory can be integrated into mainstream programming languages, we must precisely define its meaning in the context of these languages. In particular, TM semantics should address the advanced features present in the existing software TM implementations, such as interactions between transactions and locks, explicit user-level abort and Support for legacy code. In this paper, we address these topics from both theoretical and practical points of view. We give precise formulations of several popular TM semantics for the domain of sequentially consistent executions and show that some of these semantics are equivalent for C++ programs that do not contain other forms of synchronization. We show that lock-based semantics, such as Single Global Lock Atomicity (SLA) or Disjoint Lock Atomicity (DLA), do not actually guarantee atomicity for race-free programs and propose a new semantics, Race-Free Atomicity (RFA) that gives such a guarantee. We compare these semantics from the programmer and implementation points of view and explain why supporting non-atomic transactions is useful. Finally, we propose a new set of language constructs that let programmers explicitly specify whether transactions should be atomic and describe how these constructs interact with user-level abort and legacy code.
引用
收藏
页码:49 / 58
页数:10
相关论文
共 34 条
  • [1] ABADI M, PPOPP 2009
  • [2] ABADI M, POPL 2008
  • [3] BAUGH L, ISCA 2008
  • [4] BECKER P, 2009, WG21N2857PL221609004
  • [5] Blundell C., 2005, 4 ANN WORKSH DUPL DE
  • [6] BOEHM H, 2008, PLDI 2008
  • [7] BOEHM H, HOTPAR 2009 IN PRESS
  • [8] BRONSON N, POPL 2009
  • [9] CROWL L, 2007, 2 ACM SIGPLAN WORKSH
  • [10] DALESSANDRO L, 2009, 4 ACM SIGPLAN WORKSH