A methodology for creating fast wait-free data structures
Authors:
Open Access
- 25 February 2012
- journal article
- conference paper
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 47 (8) , 141-150
Abstract
Lock-freedom is a progress guarantee that ensures overall program progress. Wait-freedom is a stronger progress guarantee that ensures the progress of each thread in the program. While many practical lock-free algorithms exist, wait-free algorithms are typically inefficient and hardly used in practice. In this paper, we propose a methodology called fast-path-slow-path for creating efficient wait-free algorithms. The idea is to execute the efficient lock-free version most of the time and revert to the wait-free version only when things go wrong. The generality and effectiveness of this methodology is demonstrated by two examples. In this paper, we apply this idea to a recent construction of a wait-free queue, bringing the wait-free implementation to perform in practice as efficient as the lock-free implementation. In another work, the fast-path-slow-path methodology has been used for (dramatically) improving the performance of a wait-free linked-list.Keywords
This publication has 21 references indexed in Scilit:
- A scalable lock-free stack algorithmJournal of Parallel and Distributed Computing, 2010
- An optimistic approach to lock-free FIFO queuesDistributed Computing, 2007
- Obstruction-Free Algorithms Can Be Practically Wait-FreeLecture Notes in Computer Science, 2005
- Hazard pointers: safe memory reclamation for lock-free objectsIEEE Transactions on Parallel and Distributed Systems, 2004
- A simple, fast and scalable non-blocking concurrent FIFO queue for shared memory multiprocessor systems2001
- A new fast-path mechanism for mutual exclusionDistributed Computing, 2001
- A methodology for implementing highly concurrent data objectsACM Transactions on Programming Languages and Systems, 1993
- Wait-free synchronizationACM Transactions on Programming Languages and Systems, 1991
- Linearizability: a correctness condition for concurrent objectsACM Transactions on Programming Languages and Systems, 1990
- A fast mutual exclusion algorithmACM Transactions on Computer Systems, 1987