Lock elision for read-only critical sections in Java
Takuya Nakaike, Maged M. Michael
PLDI 2010
Lock-free (non-blocking) shared data structures promise more robust performance and reliability than conventional lock-based implementations. However, all prior lock-free algorithms for sets and hash tables suffer from serious drawbacks that prevent or limit their use in practice. These drawbacks include size inflexibility, dependence on atomic primitives not supported on any current processor architecture, and dependence on highly-inefficient or blocking memory management techniques. Building on the results of prior researchers, this paper presents the first CAS-based lock-free list-based set algorithm that is compatible with all lock-free memory management methods. We use it as a building block of an algorithm for lock-free hash tables. In addition to being lock-free, the new algorithm is dynamic, linearizable, and space-efficient. Our experimental results show that the new algorithm out-performs the best known lock-free as well as lock-based hash table implementations by significant margins, and indicate that it is the algorithm of choice for implementing shared hash tables.
Takuya Nakaike, Maged M. Michael
PLDI 2010
Ashwini K. Nanda, Anthony-Trung Nguyen, et al.
HPCA 2000
Maged M. Michael, Martin T. Vechev, et al.
PPoPP 2009
Gianfranco Bilardi, Kattamuri Ekanadham, et al.
SPAA 2002