English

A one-bit swap object using test-and-sets and a max register

Distributed, Parallel, and Cluster Computing 2012-10-24 v1 Data Structures and Algorithms

Abstract

We describe a linearizable, wait-free implementation of a one-bit swap object from a single max register and an unbounded array of test-and-set bits. Each swap operation takes at most three steps. Using standard randomized constructions, the max register and test-and-set bits can be replaced by read-write registers, at the price of raising the cost of a swap operation to an expected O(max(log n, min(log t, n))) steps, where t is the number of times the swap object has previously changed its value and n is the number of processes.

Cite

@article{arxiv.1210.6286,
  title  = {A one-bit swap object using test-and-sets and a max register},
  author = {James Aspnes},
  journal= {arXiv preprint arXiv:1210.6286},
  year   = {2012}
}
R2 v1 2026-06-21T22:26:34.784Z