The Space Complexity of Scannable Binary Objects

被引:2
作者
Ovens, Sean [1 ]
机构
[1] Univ Toronto, Toronto, ON, Canada
来源
PROCEEDINGS OF THE 2021 ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING (PODC '21) | 2021年
关键词
space complexity; lower bound; snapshot object; shared memory; ATOMIC SNAPSHOTS; SHARED-MEMORY; BOUNDS; TIME;
D O I
10.1145/3465084.3467916
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Determining a consistent view of the contents of a shared array while its components are being modified is a fundamental task in distributed algorithm design. Snapshot objects address this problem when read/write registers are components of the array. A natural generalization of a snapshot object is a scannable object, an object with multiple components that each support Read and some other operations. Scannable objects also support the Scan operation, which provides an instantaneous view of all the object's components. This raises the question: How many instances of objects in some set O are required to implement a scannable object whose components are in O? In this paper, we consider scannable binary objects, whose components are arbitrary 1-bit objects. If each component is a test-and-set object, there is a simple implementation using k test-and-set objects. However, when each component is non-monotonic (i.e. can change from 0 to 1 and from 1 to 0), we prove that more objects are needed. Specifically, when n <= 2(k-1) + 2, we show a lower bound of n + k - 2 base objects, even for obstruction-free, single-updater implementations. When n >= 2(k) - 2, we prove that 2(k) - 1 base objects are required for obstruction-free, single-updater implementations. When 2(k-1) + 2 < n < 2(k) - 2, we show a gradual transition between these two lower bounds. We show that there is a lock-free implementation of an n-process, scannable binary object with k components from n + k instances of 1-bit base objects, nearly matching our lower bound when n <= 2(k -1) + 2. There is a known wait-free, single-updater implementation that uses 2 k base objects, nearly matching our lower bound when n >= 2(k) - 2.
引用
收藏
页码:509 / 519
页数:11
相关论文
共 36 条
[1]   ATOMIC SNAPSHOTS OF SHARED-MEMORY [J].
AFEK, Y ;
ATTIYA, H ;
DOLEV, D ;
GAFNI, E ;
MERRITT, M ;
SHAVIT, N .
JOURNAL OF THE ACM, 1993, 40 (04) :873-890
[2]  
ANDERSON JH, 1990, PROCEEDINGS OF THE NINTH ANNUAL ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING, P15, DOI 10.1145/93385.93396
[3]   MULTI-WRITER COMPOSITE REGISTERS [J].
ANDERSON, JH .
DISTRIBUTED COMPUTING, 1994, 7 (04) :175-195
[4]  
ASPNES J, 1990, SPAA 90 : 2ND ANNUAL ACM SYMPOSIUM ON PARALLEL ALGORITHMS AND ARCHITECTURES, P340, DOI 10.1145/97444.97701
[5]   Limited-Use Atomic Snapshots with Polylogarithmic Step Complexity [J].
Aspnes, James ;
Attiya, Hagit ;
Censor-Hillel, Keren ;
Ellen, Faith .
JOURNAL OF THE ACM, 2015, 62 (01) :3
[6]   Max Registers, Counters, and Monotone Circuits (Preliminary Version) [J].
Aspnes, James ;
Attiya, Hagit ;
Censor, Keren .
PODC'09: PROCEEDINGS OF THE 2009 ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING, 2009, :36-45
[7]   ATOMIC SNAPSHOTS USING LATTICE AGREEMENT [J].
ATTIYA, H ;
HERLIHY, M ;
RACHMAN, O .
DISTRIBUTED COMPUTING, 1995, 8 (03) :121-132
[8]   Atomic snapshots in O(n log n) operations [J].
Attiya, H ;
Rachman, O .
SIAM JOURNAL ON COMPUTING, 1998, 27 (02) :319-340
[9]  
Attiya H., 2014, Synthesis Lectures on Distributed Computing Theory, DOI [10.2200/S00551ED1V01Y201311DCT012, DOI 10.2200/S00551ED1V01Y201311DCT012]
[10]  
Attiya H., 2004, DISTRIB COMPUT