Skip to content

Treiber Stack

Alina Bondarets edited this page Sep 1, 2022 · 6 revisions

Implementation here

Overview

  • A Treiber lock-free stack with support for blocking pops.
  • Usable with any number of producers and consumers.
  • The stack is implemented as a singly linked list with a pointer to the top.
  • Uses tagged pointers to avoid the ABA problem.

Related sources:

Other implementations:

Clone this wiki locally