Issue No. 02 - February (2010 vol. 21)

ISSN: 1045-9219

pp: 162-173

DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/TPDS.2009.60

Danny Hendler , Ben-Gurion University, Beer-Sheva

Hagit Attiya , Technion, Haifa

ABSTRACT

This paper presents lower bounds on the time and space complexity of implementations that use k-compare&swap (k-CAS) synchronization primitives. We prove that using k-CAS primitives can improve neither the time nor the space complexity of implementations of widely used concurrent objects, such as counter, stack, queue, and collect. Surprisingly, overly restrictive use of k-CAS may even increase the space complexity required by such implementations. We prove a lower bound of \Omega (\log_2 n) on the round complexity of implementations of a collect object using read, write, and k-CAS, for any k, where n is the number of processes in the system. There is an implementation of collect with O(\log_2 n) round complexity that uses only reads and writes. Thus, our lower bound establishes that k-CAS is no stronger than read and write for collect implementation round complexity. For k-CAS operations that return the values of all the objects they access, we prove that the total step complexity of implementing key objects such as counters, stacks, and queues is \Omega (n \log_k n). We also prove that k-CAS cannot improve the space complexity of implementing many objects (including counter, stack, queue, and single-writer snapshot). An implementation has to use at least n base objects even if k-CAS is allowed, and if all operations (other than read) swap exactly k base objects, then it must use at least k \cdot n base objects.

INDEX TERMS

Compare&swap (CAS), k-compare&swap (k-CAS), conditional synchronization primitives, round complexity, collect, counter, stack, queue.

CITATION

Danny Hendler, Hagit Attiya, "Time and Space Lower Bounds for Implementations Using k-CAS",

*IEEE Transactions on Parallel & Distributed Systems*, vol. 21, no. , pp. 162-173, February 2010, doi:10.1109/TPDS.2009.60