Fast Concurrent Primitives Despite Contention

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bender, Michael A., Blelloch, Guy E., Farach-Colton, Martin, Hu, Yang, Johnson, Rob, Oshman, Rotem, Zhou, Renfei
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917412098539520
author Bender, Michael A.
Blelloch, Guy E.
Farach-Colton, Martin
Hu, Yang
Johnson, Rob
Oshman, Rotem
Zhou, Renfei
author_facet Bender, Michael A.
Blelloch, Guy E.
Farach-Colton, Martin
Hu, Yang
Johnson, Rob
Oshman, Rotem
Zhou, Renfei
contents We study the problem of constructing concurrent objects in a setting where $P$ processes run in parallel and interact through a shared memory that is subject to write contention. Our goal is to transform hardware primitives that are subject to write contention into ones that handle contention gracefully. We give contention-resolution algorithms for several basic primitives, and analyze them under a relaxed, roughly-synchronous stochastic scheduler, where processes run at roughly the same rate up to a constant factor with high probability. Specifically, we construct read/write registers and CAS registers that have latency $O(\log P)$ w.h.p. under our scheduler model, using $O(1)$ hardware read/write registers and, in the case of our CAS construction, one hardware CAS register. Our algorithms guarantee performance even when their operations are invoked by an adaptive adversary that is able to see the entire history of operations so far, including their timing and return values. This allows them to be used as building blocks inside larger programs; using this compositionality property, we obtain several other constructions (LL/SC, fetch-and-increment, bounded max registers, and counters). To complement our constructions, we give a trade-off showing that even under a perfectly synchronous schedule and even if each process only executes one operation, any algorithm that implements any of the primitives that we consider, uses space $M$, and has latency at most $L$ with high probability must have expected latency at least $Ω(\log_{ML} P)$.
format Preprint
id arxiv_https___arxiv_org_abs_2604_14530
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Fast Concurrent Primitives Despite Contention
Bender, Michael A.
Blelloch, Guy E.
Farach-Colton, Martin
Hu, Yang
Johnson, Rob
Oshman, Rotem
Zhou, Renfei
Data Structures and Algorithms
Distributed, Parallel, and Cluster Computing
We study the problem of constructing concurrent objects in a setting where $P$ processes run in parallel and interact through a shared memory that is subject to write contention. Our goal is to transform hardware primitives that are subject to write contention into ones that handle contention gracefully. We give contention-resolution algorithms for several basic primitives, and analyze them under a relaxed, roughly-synchronous stochastic scheduler, where processes run at roughly the same rate up to a constant factor with high probability. Specifically, we construct read/write registers and CAS registers that have latency $O(\log P)$ w.h.p. under our scheduler model, using $O(1)$ hardware read/write registers and, in the case of our CAS construction, one hardware CAS register. Our algorithms guarantee performance even when their operations are invoked by an adaptive adversary that is able to see the entire history of operations so far, including their timing and return values. This allows them to be used as building blocks inside larger programs; using this compositionality property, we obtain several other constructions (LL/SC, fetch-and-increment, bounded max registers, and counters). To complement our constructions, we give a trade-off showing that even under a perfectly synchronous schedule and even if each process only executes one operation, any algorithm that implements any of the primitives that we consider, uses space $M$, and has latency at most $L$ with high probability must have expected latency at least $Ω(\log_{ML} P)$.
title Fast Concurrent Primitives Despite Contention
topic Data Structures and Algorithms
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2604.14530