Automatic Scalable Atomicity via Semantic Locking

作者:Golan Gueta Guy*; Ramalingam G; Sagiv Mooly; Yahav Eran
来源:ACM Sigplan Notices, 2015, 50(8): 31-41.
DOI:10.1145/2688500.2688511

摘要

In this paper, we consider concurrent programs in which the shared state consists of instances of linearizable ADTs (abstract data types). We present an automated approach to concurrency control that addresses a common need: the need to atomically execute a code fragment, which may contain multiple ADT operations on multiple ADT instances. We present a synthesis algorithm that automatically enforces atomicity of given code fragments (in a client program) by inserting pessimistic synchronization that guarantees atomicity and deadlock-freedom (without using any rollback mechanism). Our algorithm takes a commutativity specification as an extra input. This specification indicates for every pair of ADT operations the conditions under which the operations commute. Our algorithm enables greater parallelism by permitting commuting operations to execute concurrently. We have implemented the synthesis algorithm in a Java compiler, and applied it to several Java programs. Our results show that our approach produces efficient and scalable synchronization.

  • 出版日期2015-8
  • 单位Microsoft

全文