English

Efficient Wait-Free Linearizable Implementations of Approximate Bounded Counters Using Read-Write Registers

Distributed, Parallel, and Cluster Computing 2024-02-23 v1

Abstract

Relaxing the sequential specification of a shared object is a way to obtain an implementation with better performance compared to implementing the original specification. We apply this approach to the Counter object, under the assumption that the number of times the Counter is incremented in any execution is at most a known bound mm. We consider the kk-multiplicative-accurate Counter object, where each read operation returns an approximate value that is within a multiplicative factor kk of the accurate value. More specifically, a read is allowed to return an approximate value xx of the number vv of increments previously applied to the counter such that v/kxvkv/k \le x \le vk. We present three algorithms to implement this object in a wait-free linearizable manner in the shared memory model using read-write registers. All the algorithms have read operations whose worst-case step complexity improves exponentially on that for an exact mm-bounded counter (which in turn improves exponentially on that for an exact unbounded counter). Two of the algorithms have read step complexity that is asymptotically optimal. The algorithms differ in their requirements on kk, step complexity of the increment operation, and space complexity.

Keywords

Cite

@article{arxiv.2402.14120,
  title  = {Efficient Wait-Free Linearizable Implementations of Approximate Bounded Counters Using Read-Write Registers},
  author = {Colette Johnen and Adnane Khattabi and Alessia Milani and Jennifer L. Welch},
  journal= {arXiv preprint arXiv:2402.14120},
  year   = {2024}
}

Comments

26 pages, to be published in SIROCCO 2024 proceedings

R2 v1 2026-06-28T14:56:20.177Z