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 条
  • [21] Data-centric approach for miscellaneous optical sensing and imaging
    Tanida, Jun
    Horisaki, Ryoichi
    [J]. HOLOGRAPHY, DIFFRACTIVE OPTICS, AND APPLICATIONS IX, 2019, 11188
  • [22] A data-centric approach for ethical and trustworthy AI in journalism
    Dierickx, Laurence
    Opdahl, Andreas Lothe
    Khan, Sohail Ahmed
    Linden, Carl-Gustav
    Guerrero Rojas, Diana Carolina
    [J]. ETHICS AND INFORMATION TECHNOLOGY, 2024, 26 (04)
  • [23] A data-centric approach to understanding the pricing of financial options
    J. Healy
    M. Dixon
    B. Read
    F.F. Cai
    [J]. The European Physical Journal B - Condensed Matter and Complex Systems, 2002, 27 : 219 - 227
  • [24] Understanding the Indian Labour Market: A Data-Centric Approach
    Shabana, K. M.
    Gracious, Tony
    Subramonian, Hrishikesh
    [J]. PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON DATA SCIENCE & ENGINEERING (ICDSE), 2016, : 26 - 31
  • [25] Data-centric AI approach for automated wildflower monitoring
    Schouten, Gerard
    Michielsen, Bas S. H. T.
    Gravendeel, Barbara
    [J]. PLOS ONE, 2024, 19 (09):
  • [26] A data-centric approach to understanding the pricing of financial options
    Healy, J
    Dixon, M
    Read, B
    Cai, FF
    [J]. EUROPEAN PHYSICAL JOURNAL B, 2002, 27 (02): : 219 - 227
  • [27] A participatory data-centric approach to AI Ethics by Design
    Gerdes, Anne
    [J]. APPLIED ARTIFICIAL INTELLIGENCE, 2022, 36 (01)
  • [28] A data-centric approach to high-level synthesis
    Tarafdar, S
    Leeser, M
    [J]. IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2000, 19 (11) : 1251 - 1267
  • [29] Data-Centric Optimization Approach for Small, Imbalanced Datasets
    Tanov, Vladislav
    [J]. JOURNAL OF INFORMATION AND ORGANIZATIONAL SCIENCES, 2023, 47 (01) : 167 - 177
  • [30] A data-centric approach for scalable state machine replication
    Chockler, G
    Malkhi, D
    Dolev, D
    [J]. FUTURE DIRECTIONS IN DISTRIBUTED COMPUTING: RESEARCH AND POSITION PAPERS, 2003, 2584 : 159 - 163