The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.06 - June (2004 vol.15)
pp: 491-504
ABSTRACT
<p><b>Abstract</b>—Lock-free objects offer significant performance and reliability advantages over conventional lock-based objects. However, the lack of an efficient portable lock-free method for the reclamation of the memory occupied by dynamic nodes removed from such objects is a major obstacle to their wide use in practice. This paper presents <it>hazard pointers</it>, a memory management methodology that allows memory reclamation for arbitrary reuse. It is very efficient, as demonstrated by our experimental results. It is suitable for user-level applications—as well as system programs—without dependence on special kernel or scheduler support. It is wait-free. It requires only single-word reads and writes for memory access in its core operations. It allows reclaimed memory to be returned to the operating system. In addition, it offers a lock-free solution for the ABA problem using only practical single-word instructions. Our experimental results on a multiprocessor system show that the new methodology offers equal and, more often, significantly better performance than other memory management methods, in addition to its qualitative advantages regarding memory reclamation and independence of special hardware support. We also show that lock-free implementations of important object types, using hazard pointers, offer comparable performance to that of efficient lock-based implementations under no contention and no multiprogramming, and outperform them by significant margins under moderate multiprogramming and/or contention, in addition to guaranteeing continuous progress and availability, even in the presence of thread failures and arbitrary delays.</p>
INDEX TERMS
Lock-free, synchronization, concurrent programming, memory management, multiprogramming, dynamic data structures.
CITATION
Maged M. Michael, "Hazard Pointers: Safe Memory Reclamation for Lock-Free Objects", IEEE Transactions on Parallel & Distributed Systems, vol.15, no. 6, pp. 491-504, June 2004, doi:10.1109/TPDS.2004.8
21 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool