An Efficient Meta-lock for Implementing Ubiquitous Synchronization

  • Authors:
  • Ole Agesen;David Detlefs;Alex Garthwaite;Ross Knippel;Y.S. Ramakrishna;Derek White

  • Affiliations:
  • -;-;-;-;-;-

  • Venue:
  • An Efficient Meta-lock for Implementing Ubiquitous Synchronization
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

Programs written in concurrent object-oriented languages,especially ones that employ threadsafe reusable class libraries,can execute synchronization operations (lock, notify, etc.) at anamazing rate. Unless implemented with utmost care, synchronizationcan become a performance bottleneck. Furthermore, in languageswhere every object may have its own monitor, per-object spaceoverhead must be minimized. To address these concerns, we havedeveloped a meta-lock to mediate access to synchronization data.The meta-lock is fast (lock + unlock executes in 11SPARCTM instructions), compact (uses only two bits ofspace), robust under contention (no busy-waiting), and flexible(supports a variety of higher-level synchronization operations). Wehave validated the meta-lock with an implementation of thesynchronization operations in a high-performance product-qualityJavaTM virtual machine and report performance data forseveral large programs.