A Data-Centric Approach to Synchronization

被引:11
|
作者
Dolby, Julian [1 ]
Hammer, Christian [2 ]
Marino, Daniel [4 ]
Tip, Frank [1 ]
Vaziri, Mandana [1 ]
Vitek, Jan [3 ]
机构
[1] IBM Corp, TJ Watson Res Ctr, Yorktown Hts, NY 10598 USA
[2] Univ Saarland, Cyber Secur Lab, D-66123 Saarbrucken, Germany
[3] Purdue Univ, Dept Comp Sci, W Lafayette, IN 47907 USA
[4] Symantec Res Labs, Culver City, CA 90230 USA
基金
美国国家科学基金会;
关键词
Concurrent object-oriented programming; data races; serializability; programming model;
D O I
10.1145/2160910.2160913
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Concurrency-related errors, such as data races, are frustratingly difficult to track down and eliminate in large object-oriented programs. Traditional approaches to preventing data races rely on protecting instruction sequences with synchronization operations. Such control-centric approaches are inherently brittle, as the burden is on the programmer to ensure that all concurrently accessed memory locations are consistently protected. Data-centric synchronization is an alternative approach that offloads some of the work on the language implementation. Data-centric synchronization groups fields of objects into atomic sets to indicate that these fields must always be updated atomically. Each atomic set has associated units of work, that is, code fragments that preserve the consistency of that atomic set. Synchronization operations are added automatically by the compiler. We present an extension to the Java programming language that integrates annotations for data-centric concurrency control. The resulting language, called AJ, relies on a type system that enables separate compilation and supports atomic sets that span multiple objects and that also supports full encapsulation for more efficient code generation. We evaluate our proposal by refactoring classes from standard libraries, as well as a number of multithreaded benchmarks, to use atomic sets. Our results suggest that data-centric synchronization is easy to use and enjoys low annotation overhead, while successfully preventing data races. Moreover, experiments on the SPECjbb benchmark suggest that acceptable performance can be achieved with a modest amount of tuning.
引用
收藏
页数:48
相关论文
共 50 条
  • [41] BUAP: A First Approach to the Data-Centric Track of INEX 2010
    Vilarino, Darnes
    Pinto, David
    Balderas, Carlos
    Tovar, Mireya
    Leon, Saul
    [J]. COMPARATIVE EVALUATION OF FOCUSED RETRIEVAL, 2011, 6932 : 219 - 226
  • [42] A Data-Centric Approach to Quality Estimation of Role Mining Results
    Dong, Lijun
    Wu, Kui
    Tang, Guoming
    [J]. IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY, 2016, 11 (12) : 2678 - 2692
  • [43] MathNet: A Data-Centric Approach for Printed Mathematical Expression Recognition
    Schmitt-Koopmann, Felix M.
    Huang, Elaine M.
    Hutter, Hans-Peter
    Stadelmann, Thilo
    Darvishy, Alireza
    [J]. IEEE ACCESS, 2024, 12 : 76963 - 76974
  • [44] Data-centric decision support
    Kulhavy, R
    [J]. PROCEEDINGS OF THE 2002 AMERICAN CONTROL CONFERENCE, VOLS 1-6, 2002, 1-6 : 3395 - 3400
  • [45] Cognitive Data-Centric Systems
    Chang, Leland
    [J]. PROCEEDINGS OF THE GREAT LAKES SYMPOSIUM ON VLSI 2017 (GLSVLSI' 17), 2017, : 1 - 1
  • [46] Data-Centric Mobile Crowdsensing
    Jiang, Changkun
    Gao, Lin
    Duan, Lingjie
    Huang, Jianwei
    [J]. IEEE TRANSACTIONS ON MOBILE COMPUTING, 2018, 17 (06) : 1275 - 1288
  • [47] A data-centric predictive control approach for nonlinear chemical processes
    Wang, Ruigang
    Bao, Jie
    Yao, Yuchen
    [J]. CHEMICAL ENGINEERING RESEARCH & DESIGN, 2019, 142 : 154 - 164
  • [48] Data-Centric Approach to Hepatitis C Virus Severity Prediction
    Sharma, Aniket
    Arora, Ashok
    Gupta, Anuj
    Singh, Pramod Kumar
    [J]. INTELLIGENT SYSTEMS DESIGN AND APPLICATIONS, ISDA 2021, 2022, 418 : 421 - 431
  • [49] Disaster Management during Pandemic: A Big Data-Centric Approach
    Elsotouhy, Mohamed
    Jain, Geetika
    Shrivastava, Archana
    [J]. INTERNATIONAL JOURNAL OF INNOVATION AND TECHNOLOGY MANAGEMENT, 2021, 18 (04)
  • [50] A Data-Centric Approach to Taming the Message Dissemination in the Internet of Vehicles
    Trueblood, Fletcher
    Gill, Sumanjit
    Wong, Robert
    Tayeb, Shahab
    Pirouz, Matin
    [J]. 2020 10TH ANNUAL COMPUTING AND COMMUNICATION WORKSHOP AND CONFERENCE (CCWC), 2020, : 207 - 214