Generalized Compare and Swap
Vassos Hadzilacos, Myles Thiessen, Sam Toueg
TL;DR
A natural generalization of the well-known compare-and-swap object is proposed, one that replaces the equality comparison with an arbitrary comparator and a simple wait-free universal construction is presented.
Abstract
In this paper, we first propose a natural generalization of the well-known compare-and-swap object, one that replaces the equality comparison with an arbitrary comparator. We then present a simple wait-free universal construction using this object and prove its correctness.
