• DocumentCode
    2717013
  • Title

    Strong Atomicity: An Efficient and Easy-to-Use Mechanism to Guarantee Atomicity

  • Author

    Lu, Kai ; Zhang, Wenzhe ; Zhou, Xu

  • Author_Institution
    Dept. of Comput. Sci. & Technol., Nat. Univ. of Defense Technol., Changsha, China
  • fYear
    2012
  • fDate
    11-13 Aug. 2012
  • Firstpage
    562
  • Lastpage
    565
  • Abstract
    Atomicity violation, a common bug that obsesses multithreaded programs, has made the developing of multithreaded programs a daunting task. Atomicity is a basic correctness property of such programs. We propose strong atomicity, an efficient mechanism that helps programmers to write correct atom blocks with very little effort. We provide atom_start and atom_end for programmers to annotate an atom block. And then our runtime system will efficiently execute the block while guaranteeing atomicity. Unlike transactional memory (TM), strong atomicity permits asymmetrical atomic code regions, which means the execution of atom block not only excludes other atom blocks, but also excludes any other instructions outside atom blocks. Hence, programmers only need to simply wrap the key code region without worrying about the conflicts from outside, which saves programming effort. We have implemented our system and evaluated it with some use cases (writing or fixing multithreaded programs). With the help of our mechanism, writing an atom block is straightforward. Just wrap the block with atom_start and atom_end and it will behave like an atom operation.
  • Keywords
    multi-threading; program debugging; asymmetrical atomic code regions; atom block annotation; atom block execution; atomicity violation; block execution; easy-to-use mechanism; multithreaded program development; program correctness property; runtime system; Benchmark testing; Computer languages; Instruction sets; Instruments; Runtime; Writing; TM; atomicity; efficient; straightforward; strong atomicity;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer Science & Service System (CSSS), 2012 International Conference on
  • Conference_Location
    Nanjing
  • Print_ISBN
    978-1-4673-0721-5
  • Type

    conf

  • DOI
    10.1109/CSSS.2012.146
  • Filename
    6394384