Abstract
Lock-free data structures guarantee overall system progress, whereas wait-free data structures guarantee the progress of each and every thread, providing the desirable non-starvation guarantee for concurrent data structures. While practical lock-free implementations are known for various data structures, wait-free data structure designs are rare. Wait-free implementations have been notoriously hard to design and often inefficient. In this work we present a transformation of lock-free algorithms to wait-free ones allowing even a nonexpert to transform a lock-free data-structure into a practical wait-free one. The transformation requires that the lock-free data structure is given in a normalized form defined in this work. Using the new method, we have designed and implemented wait-free linked-list, skiplist, and tree and we measured their performance. It turns out that for all these data structures the wait-free implementations are only a few percent slower than their lock-free counterparts, while still guaranteeing non-starvation.
Original language | English |
---|---|
Pages (from-to) | 357-368 |
Number of pages | 12 |
Journal | ACM SIGPLAN Notices |
Volume | 49 |
Issue number | 8 |
DOIs | |
State | Published - Aug 2014 |
Keywords
- Lock-Freedom
- Wait-Freedom
All Science Journal Classification (ASJC) codes
- General Computer Science