Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Tight Bounds for Asynchronous Renaming

Published: 02 June 2014 Publication History

Abstract

This article presents the first tight bounds on the time complexity of shared-memory renaming, a fundamental problem in distributed computing in which a set of processes need to pick distinct identifiers from a small namespace.
We first prove an individual lower bound of Ω(k) process steps for deterministic renaming into any namespace of size subexponential in k, where k is the number of participants. The bound is tight: it draws an exponential separation between deterministic and randomized solutions, and implies new tight bounds for deterministic concurrent fetch-and-increment counters, queues, and stacks. The proof is based on a new reduction from renaming to another fundamental problem in distributed computing: mutual exclusion. We complement this individual bound with a global lower bound of Ω(k log (k/c)) on the total step complexity of renaming into a namespace of size ck, for any c ≥ 1. This result applies to randomized algorithms against a strong adversary, and helps derive new global lower bounds for randomized approximate counter implementations, that are tight within logarithmic factors.
On the algorithmic side, we give a protocol that transforms any sorting network into a randomized strong adaptive renaming algorithm, with expected cost equal to the depth of the sorting network. This gives a tight adaptive renaming algorithm with expected step complexity O(log k), where k is the contention in the current execution. This algorithm is the first to achieve sublinear time, and it is time-optimal as per our randomized lower bound. Finally, we use this renaming protocol to build monotone-consistent counters with logarithmic step complexity and linearizable fetch-and-increment registers with polylogarithmic cost.

References

[1]
Yehuda Afek, Hagit Attiya, Danny Dolev, Eli Gafni, Michael Merritt, and Nir Shavit. 1993. Atomic snapshots of shared memory. J. ACM 40, 4, 873--890.
[2]
Yehuda Afek, Hagit Attiya, Arie Fouren, Gideon Stupp, and Dan Touitou. 1999. Long-lived renaming made adaptive. In Proceedings of the 18th Annual ACM Symposium on Principles of Distributed Computing (PODC). ACM, 91--103.
[3]
Yehuda Afek, Eli Gafni, John Tromp, and Paul M. B. Vitányi. 1992. Wait-free test-and-set. In Proceedings of the 6th International Workshop on Distributed Algorithms (WDAG) (Extended Abstract). Springer-Verlag, 85--94.
[4]
Yehuda Afek and Michael Merritt. 1999. Fast, wait-free (2k-1)-renaming. In Proceedings of the 18th Annual ACM Symposium on Principles of Distributed Computing (PODC). ACM, 105--112.
[5]
Miklos Ajtai, Janos Komlós, and Endre Szemerédi. 1983. An O(n log n) sorting network. In Proceedings of the 15th Annual ACM Symposium on Theory of Computing (STOC). ACM, 1--9.
[6]
Dan Alistarh and James Aspnes. 2011. Sub-logarithmic test-and-set against a weak adversary. In Proceedings of the 25th International Conference on Distributed Computing (DISC). Springer-Verlag, 97--109.
[7]
Dan Alistarh, James Aspnes, Keren Censor-Hillel, Seth Gilbert, and Morteza Zadimoghaddam. 2011a. Optimal-time adaptive strong renaming, with applications to counting. In Proceedings of the 30th Annual ACM Symposium on Principles of Distributed Computing (PODC). ACM, 239--248.
[8]
Dan Alistarh, James Aspnes, Seth Gilbert, and Rachid Guerraoui. 2011b. The complexity of renaming. In Proceedings of the 52nd IEEE Symposium on Foundations of Computer Science (FOCS). IEEE, 718--727.
[9]
Dan Alistarh, Hagit Attiya, Seth Gilbert, Andrei Giurgiu, and Rachid Guerraoui. 2010. Fast randomized test-and-set and renaming. In Proceedings of the 24th International Conference on Distributed Computing (DISC). Springer-Verlag, 94--108. http://portal.acm.org/citation.cfm?id=1888781.1888794
[10]
Dan Alistarh, Hagit Attiya, Rachid Guerraoui, and Corentin Travers. 2012. Early-deciding renaming in O(log f) rounds or less. In Proceedings of the 19th International Colloquium on Structural Information and Communication Complexity (SIROCCO'12). Springer-Verlag.
[11]
James H. Anderson and Mark Moir. 1997. Using local-spin k-exclusion algorithms to improve wait-free object implementations. Distrib. Comput. 11, 1, 1--20.
[12]
James Aspnes, Hagit Attiya, and Keren Censor. 2012a. Polylogarithmic concurrent data structures from monotone circuits. J. ACM 59, 1, 2:1--2:24.
[13]
James Aspnes, Hagit Attiya, Keren Censor-Hillel, and Faith Ellen. 2012b. Faster than optimal snapshots (for a while): Preliminary version. In Proceedings of the ACM Symposium on Principles of Distributed Computing (PODC'12). ACM, New York, 375--384.
[14]
James Aspnes, Maurice Herlihy, and Nir Shavit. 1994. Counting networks. J. ACM 41, 5, 1020--1048.
[15]
Hagit Attiya, Amotz Bar-Noy, Danny Dolev, David Peleg, and Ruediger Reischuk. 1990. Renaming in an asynchronous environment. J. ACM 37, 3, 524--548.
[16]
Hagit Attiya and Vita Bortnikov. 2002. Adaptive and efficient mutual exclusion. Distrib. Comput. 15, 3, 177--189.
[17]
Hagit Attiya and Taly Djerassi-Shintel. 2001. Time bounds for decision problems in the presence of timing uncertainty and failures. J. Parall. Distrib. Comput. 61, 8, 1096--1109.
[18]
Hagit Attiya and Arie Fouren. 2001. Adaptive and efficient algorithms for lattice agreement and renaming. SIAM J. Comput. 31, 2, 642--664.
[19]
Hagit Attiya and Danny Hendler. 2010. Time and space lower bounds for implementations using k-CAS. IEEE Trans. Parall. Distrib. Syst. 21, 2, 162--173.
[20]
Hagit Attiya, Danny Hendler, and Philipp Woelfel. 2008. Tight RMR lower bounds for mutual exclusion and other problems. In Proceedings of the 40th Annual ACM Symposium on Theory of Computing (STOC). ACM, 217--226.
[21]
Hagit Attiya, Maurice Herlihy, and Ophir Rachman. 1995. Atomic snapshots using lattice agreement. Distrib. Comput. 8, 3, 121--132.
[22]
Hagit Attiya, Fabian Kuhn, C. Greg Plaxton, Mirjam Wattenhofer, and Roger Wattenhofer. 2006. Efficient adaptive collect using randomization. Distributed Computing 18, 3, 179--188.
[23]
Hagit Attiya and Jennifer Welch. 1998. Distributed Computing. Fundamentals, Simulations, and Advanced Topics. McGraw-Hill.
[24]
Amotz Bar-Noy and Danny Dolev. 1989. Shared-memory vs. message-passing in an asynchronous distributed environment. In Proceedings of the 8th Annual ACM Symposium on Principles of Distributed Computing (PODC). ACM, 307--318.
[25]
Michael A. Bender and Seth Gilbert. 2011. Mutual Exclusion with O(log2 log n) Amortized work. In Proceedings of the 52nd IEEE Symposium on Foundations of Computer Science (FOCS). IEEE, 728--737.
[26]
Elizabeth Borowsky and Eli Gafni. 1993. Immediate atomic snapshots and fast renaming. In Proceedings of the 12th Annual ACM Symposium on Principles of Distributed Computing (PODC). ACM, 41--51.
[27]
Alex Brodsky, Faith Ellen, and Philipp Woelfel. 2006. Fully-adaptive algorithms for long-lived renaming. In Proceedings of the 20th International Symposium on Distributed Computing (DISC). 413--427.
[28]
James E. Burns and Gary L. Peterson. 1989. The ambiguity of choosing. In PODC'89: Proceedings of the 8th Annual ACM Symposium on Principles of Distributed Computing. ACM, New York, 145--157.
[29]
Armando Castañeda and Sergio Rajsbaum. 2010. New combinatorial topology bounds for renaming: the lower bound. Distrib. Comput. 22, 5--6, 287--301.
[30]
Armando Castañeda and Sergio Rajsbaum. 2012. New combinatorial topology bounds for renaming: The upper bound. J. ACM 59, 1, 3.
[31]
Soma Chaudhuri, Maurice Herlihy, and Mark R. Tuttle. 1999. Wait-free implementations in message-passing systems. Theoret. Comput. Sci. 220, 1, 211--245.
[32]
Bogdan S. Chlebus and Dariusz R. Kowalski. 2008. Asynchronous exclusive selection. In PODC'08: Proceedings of the 27th ACM Symposium on Principles of Distributed Computing. ACM, New York, 375--384.
[33]
Stephen A. Cook, Cynthia Dwork, and Rüdiger Reischuk. 1986. Upper and lower time bounds for parallel random access machines without simultaneous writes. SIAM J. Comput. 15, 1, 87--97.
[34]
Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. 2009. Introduction to Algorithms 3rd Ed. The MIT Press.
[35]
Edgser W. Dijkstra. 1965. Solution of a problem in concurrent programming control. Commun. ACM 8, 9, 569.
[36]
Wayne Eberly, Lisa Higham, and Jolanta Warpechowska-Gruca. 1998. Long-lived, fast, waitfree renaming with optimal name space and high throughput. In Proceedings of DISC. 149--160.
[37]
Alan David Fekete. 1990. Asymptotically optimal algorithms for approximate agreement. Distrib. Comput. 4, 9--29.
[38]
Faith Ellen Fich, Danny Hendler, and Nir Shavit. 2005. Linear lower bounds on real-world implementations of concurrent objects. In Proceedings of the 46th IEEE Symposium on Foundations of Computer Science (FOCS). IEEE, 165--173.
[39]
Eli Gafni. 2009. The extended BG-simulation and the characterization of t-resiliency. In Proceedings of the 41st ACM Symposium on Theory of Computing. ACM, 85--92.
[40]
Wojciech Golab, Lisa Higham, and Philipp Woelfel. 2011. Linearizable implementations do not suffice for randomized distributed computation. In Proceedings of the 43rd ACM Symposium on Theory of Computing (STOC). ACM, 373--382.
[41]
Wojciech M. Golab, Vassos Hadzilacos, Danny Hendler, and Philipp Woelfel. 2007. Constant-RMR implementations of CAS and other synchronization primitives using read and write operations. In Proceedings of the 26th Annual ACM Symposium on Principles of Distributed Computing (PODC). 3--12.
[42]
Jae-heon Yang and James H. Anderson. 1995. A fast, scalable mutual exclusion algorithm. Distrib. Comput. 9, 51--60.
[43]
Maurice Herlihy. 1991. Wait-free synchronization. ACM Trans. Prog. Lang. Syst. 13, 1, 123--149.
[44]
Maurice Herlihy and Nir Shavit. 1999. The topological structure of asynchronous computability. J. ACM 46, 6, 858--923.
[45]
Maurice Herlihy and Jeannette M. Wing. 1990. Linearizability: A correctness condition for concurrent objects. ACM Trans. Prog. Lang. Syst. 12, 3, 463--492.
[46]
Prasad Jayanti. 1998. A time complexity lower bound for randomized implementations of some shared objects. In Proceedings of the 17th Annual ACM Symposium on Principles of Distributed Computing (PODC). ACM, 201--210.
[47]
Prasad Jayanti, King Tan, and Sam Toueg. 2000. Time and space lower bounds for nonblocking implementations. SIAM J. Comput. 30, 2, 438--456.
[48]
Yong-Jik Kim and James H. Anderson. 2012. A time complexity lower bound for adaptive mutual exclusion. Distrib. Comput. 24, 6, 271--297.
[49]
Donald E. Knuth. 1998. The Art of Computer Programming, Volume 3: Sorting and Searching 2nd Ed. Addison Wesley Longman Publishing Co., Inc., Redwood City, CA.
[50]
Shay Kutten, Rafail Ostrovsky, and Boaz Patt-Shamir. 2000. The Las-Vegas processor identity problem (how and when to be unique). J. Algor. 37, 2, 468--494.
[51]
Leslie Lamport. 1987. A fast mutual exclusion algorithm. ACM Trans. Comput. Syst. 5, 1, 1--11.
[52]
Richard J. Lipton and Arvin Park. 1990. The processor identity problem. Inf. Process. Lett. 36, 2, 91--94.
[53]
Nancy A. Lynch. 1996. Distributed Algorithms. Morgan-Kaufmann.
[54]
Mark Moir and James H. Anderson. 1995. Wait-free algorithms for fast, long-lived renaming. Sci. Comput. Program. 25, 1, 1--39.
[55]
Mark Moir and Juan A. Garay. 1996. Fast, long-lived renaming improved and simplified. In Proceedings of the 10th International Workshop on Distributed Algorithms (WDAG). Springer-Verlag, 287--303.
[56]
Michael Okun. 2010. Strong order-preserving renaming in the synchronous message passing model. Theoret. Comput. Sci. 411, 40--42, 3787--3794.
[57]
Alessandro Panconesi, Marina Papatriantafilou, Philippas Tsigas, and Paul M. B. Vitányi. 1998. Randomized naming using wait-free shared variables. Distrib. Comput. 11, 3, 113--124.
[58]
Marshall Pease, Robert Shostak, and Leslie Lamport. 1980. Reaching agreement in the presence of faults. J. ACM 27, 2, 228--234.
[59]
John Tromp and Paul Vitányi. 2002. Randomized two-process wait-free test-and-set. Distrib. Comput. 15, 3, 127--135.

Cited By

View all
  • (2022)Randomized consensus with regular registersInformation Processing Letters10.1016/j.ipl.2021.106173174:COnline publication date: 1-Mar-2022
  • (2021)On Register Linearizability and TerminationProceedings of the 2021 ACM Symposium on Principles of Distributed Computing10.1145/3465084.3467925(521-531)Online publication date: 21-Jul-2021
  • (2021)Randomized renaming in shared memory systemsJournal of Parallel and Distributed Computing10.1016/j.jpdc.2021.01.002150(112-120)Online publication date: Apr-2021
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Journal of the ACM
Journal of the ACM  Volume 61, Issue 3
May 2014
262 pages
ISSN:0004-5411
EISSN:1557-735X
DOI:10.1145/2628069
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 02 June 2014
Accepted: 01 January 2014
Revised: 01 September 2013
Received: 01 September 2012
Published in JACM Volume 61, Issue 3

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Distributed computing
  2. concurrent data structures
  3. lower bounds
  4. renaming
  5. shared memory

Qualifiers

  • Research-article
  • Research
  • Refereed

Funding Sources

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)2
  • Downloads (Last 6 weeks)0
Reflects downloads up to 01 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2022)Randomized consensus with regular registersInformation Processing Letters10.1016/j.ipl.2021.106173174:COnline publication date: 1-Mar-2022
  • (2021)On Register Linearizability and TerminationProceedings of the 2021 ACM Symposium on Principles of Distributed Computing10.1145/3465084.3467925(521-531)Online publication date: 21-Jul-2021
  • (2021)Randomized renaming in shared memory systemsJournal of Parallel and Distributed Computing10.1016/j.jpdc.2021.01.002150(112-120)Online publication date: Apr-2021
  • (2019)Efficiency Guarantees for Parallel Incremental Algorithms under Relaxed SchedulersThe 31st ACM Symposium on Parallelism in Algorithms and Architectures10.1145/3323165.3323201(145-154)Online publication date: 17-Jun-2019
  • (2018)Distributionally Linearizable Data StructuresProceedings of the 30th on Symposium on Parallelism in Algorithms and Architectures10.1145/3210377.3210411(133-142)Online publication date: 11-Jul-2018
  • (2018)On the Importance of Synchronization Primitives with Low Consensus NumbersProceedings of the 19th International Conference on Distributed Computing and Networking10.1145/3154273.3154306(1-10)Online publication date: 4-Jan-2018
  • (2017)Lease/ReleaseACM Transactions on Parallel Computing10.1145/31321684:2(1-25)Online publication date: 10-Oct-2017
  • (2017)Brief AnnouncementProceedings of the ACM Symposium on Principles of Distributed Computing10.1145/3087801.3087841(95-96)Online publication date: 25-Jul-2017
  • (2017)The Power of Choice in Priority SchedulingProceedings of the ACM Symposium on Principles of Distributed Computing10.1145/3087801.3087810(283-292)Online publication date: 25-Jul-2017
  • (2017)Poly-logarithmic adaptive algorithms require revealing primitivesJournal of Parallel and Distributed Computing10.1016/j.jpdc.2017.05.010109:C(102-116)Online publication date: 1-Nov-2017
  • Show More Cited By

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media