A formal reduction for lock-free parallel algorithms

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademic

11 Citations (Scopus)
260 Downloads (Pure)

Abstract

On shared memory multiprocessors, synchronization often turns out to be a performance bottleneck and the source of poor fault-tolerance. Lock-free algorithms can do without locking mechanisms, and are therefore desirable. Lock-free algorithms are hard to design correctly, however, even when apparently straightforward. We formalize Herlihy's methodology [13] for transferring a sequential implementation of any data structure into a lock-free synchronization by means of synchronization primitives Load-linked (LL)/store-conditional (SC). This is done by means of a reduction theorem that enables us to reason about the general lock-free algorithm to be designed on a higher level than the synchronization primitives. The reduction theorem is based on refinement mapping as described by Lamport [10] and has been verified with the higher-order interactive theorem prover PVS. Using the reduction theorem, fewer invariants are required and some invariants are easier to discover and easier to formulate.

The lock-free implementation works quite well for small objects. However, for large objects, the approach is not very attractive as the burden of copying the data can be very heavy. We propose two enhanced lock-free algorithms for large objects in which slower processes don't need to copy the entire object again if their attempts fail. This results in lower copying overhead than in Herlihy's proposal.

Original languageEnglish
Title of host publicationEPRINTS-BOOK-TITLE
EditorsR Alur, DA Peled
Place of PublicationBERLIN
PublisherUniversity of Groningen, Johann Bernoulli Institute for Mathematics and Computer Science
Pages44-56
Number of pages13
ISBN (Print)3-540-22342-8
Publication statusPublished - 2004
Event16th International Conference on Computer Aided Verification (CAV 2004) - , Morocco
Duration: 13-Jul-200417-Jul-2004

Publication series

NameLECTURE NOTES IN COMPUTER SCIENCE
PublisherSPRINGER-VERLAG BERLIN
Volume3114
ISSN (Print)0302-9743

Other

Other16th International Conference on Computer Aided Verification (CAV 2004)
Country/TerritoryMorocco
Period13/07/200417/07/2004

Keywords

  • Refinement mapping
  • Simulation
  • Lock-free
  • Distributed algorithms

Fingerprint

Dive into the research topics of 'A formal reduction for lock-free parallel algorithms'. Together they form a unique fingerprint.

Cite this