Composable, nestable, pessimistic atomic statements

Author:

Anderson Zachary1,Gay David2

Affiliation:

1. ETH Zurich , Zurich, Switzerland

2. Intel Labs Berkeley, Berkeley, CA, USA

Abstract

In this paper we introduce a new method for pessimistically implementing composable, nestable atomic statements. Our mechanism, called shelters, is inspired by the synchronization strategy used in the Jade programming language. Unlike previous lock-based pessimistic approaches, our mechanism does not require a whole-program analysis that computes a global lock order. Further, this mechanism frees us to implement several optimizations, impossible with automatically inserted locks, that are necessary for scaling on recent multi-core systems. Additionally we show how our basic mechanism can be extended to support both open- and closed-nesting of atomic statements, something that, to our knowledge, has not yet been implemented fully-pessimistically in this context. Unlike optimistic, transactional-memory-based approaches, programmers using our mechanism do not have to write compensating actions for open-nesting, or worry about the possibly awkward semantics and performance impact of aborted transactions. Similar to systems using locks, our implementation requires programmers to annotate the types of objects with the shelters that protect them, and indicate the sections of code to be executed atomically with atomic statements. A static analysis then determines from which shelters protection is needed for the atomic statements to run atomically. We have implemented shelter-based atomic statements for C, and applied our implementation to 12 benchmarks totaling over 200k lines of code including the STAMP benchmark suite, and the sqlite database system. Our implementation's performance is competitive with explicit locking, Autolocker, and a mature software transactional memory implementation.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference39 articles.

1. Memory models for open-nested transactions

2. Agrawal R. Carey M. J. and Livny M. Concurrency control performance modeling: alternatives and implications. Agrawal R. Carey M. J. and Livny M. Concurrency control performance modeling: alternatives and implications.

3. Concurrency control performance modeling: alternatives and implications

4. Allen E. Chase D. Luchangco V. Jr. J.-W. M. S. R. G. L. S. and Tobin-Hochstadt S. The Fortress language specification version 1.0 2008. http://research.sun.com/projects/plrg/fortress.pdf. Allen E. Chase D. Luchangco V. Jr. J.-W. M. S. R. G. L. S. and Tobin-Hochstadt S. The Fortress language specification version 1.0 2008. http://research.sun.com/projects/plrg/fortress.pdf.

5. Unbounded Transactional Memory

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3