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 language | English |
---|---|
Title of host publication | EPRINTS-BOOK-TITLE |
Editors | R Alur, DA Peled |
Place of Publication | BERLIN |
Publisher | University of Groningen, Johann Bernoulli Institute for Mathematics and Computer Science |
Pages | 44-56 |
Number of pages | 13 |
ISBN (Print) | 3-540-22342-8 |
Publication status | Published - 2004 |
Event | 16th International Conference on Computer Aided Verification (CAV 2004) - , Morocco Duration: 13-Jul-2004 → 17-Jul-2004 |
Publication series
Name | LECTURE NOTES IN COMPUTER SCIENCE |
---|---|
Publisher | SPRINGER-VERLAG BERLIN |
Volume | 3114 |
ISSN (Print) | 0302-9743 |
Other
Other | 16th International Conference on Computer Aided Verification (CAV 2004) |
---|---|
Country/Territory | Morocco |
Period | 13/07/2004 → 17/07/2004 |
Keywords
- Refinement mapping
- Simulation
- Lock-free
- Distributed algorithms