Hazard pointers
A way to know when it is safe to free memory in a lock-free data structure: every thread openly publishes which pointers it is currently using.
The problem is that in a lock-free structure you cannot free a node the moment it is unlinked, since another thread may well be in the middle of reading it. Maged Michael's 2004 solution is that each thread has a number of slots into which it writes the pointers it is currently dereferencing, and everybody else can read those slots. A thread wanting to free a node instead places it on a private list and periodically walks all threads' slots — nodes nobody has published get freed, the rest wait. The advantage over epoch-based reclamation is that memory usage stays bounded even if a thread stalls; the cost is a fence per read. Standardised in C++26.