Exploiting purity for atomicity

被引:23
|
作者
Flanagan, C
Freund, SN
Qadeer, S
机构
[1] Univ Calif Santa Cruz, Dept Comp Sci, Santa Cruz, CA 95064 USA
[2] Williams Coll, Dept Comp Sci, Williamstown, MA 01267 USA
[3] Microsoft Corp, Res, Redmond, WA 98052 USA
基金
美国国家科学基金会;
关键词
atomicity; purity; reduction; concurrent programs;
D O I
10.1109/TSE.2005.47
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Multithreaded programs often exhibit erroneous behavior because of unintended interactions between concurrent threads. This paper focuses on the noninterference property of atomicity. A procedure is atomic if, for every execution, there is an equivalent serial execution in which the actions of the atomic procedure are not interleaved with actions of other threads. This key property makes atomic procedures amenable to sequential reasoning techniques, which significantly facilitates subsequent validation activities such as code inspection and testing. Several existing tools verify atomicity by using commutativity of actions to show that every execution reduces to a corresponding serial execution. However, experiments with these tools have highlighted a number of interesting procedures that, while intuitively atomic, are not reducible. In this paper, we exploit the notion of pure code blocks to verify the atomicity of such irreducible procedures. If a pure block terminates normally, then its evaluation does not change the program state and, hence, these evaluation steps can be removed from the program trace before reduction. We develop a static typed-based analysis for atomicity based on this insight, and we illustrate this analysis on a number of interesting examples that could not be verified using earlier tools based purely on reduction.
引用
收藏
页码:275 / 291
页数:17
相关论文
共 50 条
  • [1] Exploiting polymorphism in the purity enhancement of lincomycin hydrochloride
    Qian, Gang
    Wu, Yangyang
    Yang, Xiangyu
    Zhou, Xinggui
    CHEMICAL ENGINEERING SCIENCE, 2012, 77 : 42 - 46
  • [2] Atomicity failure and the retrenchment atomicity pattern
    Banach, Richard
    Jeske, Czeslaw
    Hall, Anthony
    Stepney, Susan
    FORMAL ASPECTS OF COMPUTING, 2013, 25 (03) : 439 - 464
  • [4] Relationality and atomicity
    Blanco, A
    THEORIA-REVISTA DE TEORIA HISTORIA Y FUNDAMENTOS DE LA CIENCIA, 2001, 16 (02): : 207 - 236
  • [5] Rollback atomicity
    Tasiran, Serdar
    Elmas, Tayfun
    RUNTIME VERIFICATION, 2007, 4839 : 188 - 201
  • [6] Syntactic Atomicity
    Peter Ackema
    Ad Neeleman
    The Journal of Comparative Germanic Linguistics, 2002, 6 (2) : 93 - 128
  • [7] CONCURRENCY AND ATOMICITY
    BOUDOL, G
    CASTELLANI, I
    THEORETICAL COMPUTER SCIENCE, 1988, 59 (1-2) : 25 - 84
  • [8] Types for atomicity
    Flanagan, C
    Qadeer, S
    ACM SIGPLAN NOTICES, 2003, 38 (03) : 1 - 12
  • [9] ATOMICITY AND NILPOTENCE
    KEARNES, KA
    CANADIAN JOURNAL OF MATHEMATICS-JOURNAL CANADIEN DE MATHEMATIQUES, 1990, 42 (02): : 365 - 382
  • [10] Refinement by atomicity
    Yuen, Pui Sum
    ZEITSCHRIFT FUR KRISTALLOGRAPHIE-CRYSTALLINE MATERIALS, 2015, 230 (08): : 513 - 517