skip to main content
10.1145/1073814.1073862acmconferencesArticle/Chapter ViewAbstractPublication PagespodcConference Proceedingsconference-collections
Article

Efficient multi-word locking using randomization

Published: 17 July 2005 Publication History

Abstract

In this paper we examine the general multi-word lock problem, where processes are allowed to multilock arbitrary registers. Aiming for a highly efficient solution we propose a randomized algorithm which successfully breaks long dependency chains, the crucial factor for slowing down an execution. In the analysis we focus on the 2-word lock problem and show that in this special case an execution of our algorithm takes with high probability at most time O(Δ3 log n /log log n), where n is the number of registers and Δ the maximal number of processes interested in the same register (the contention). Furthermore, we implemented our algorithm for the general multi-word lock problem on an SGI Origin2000 machine, demonstrating that our algorithm is not only of theoretical interest.

References

[1]
J. H. Anderson and M. Moir. Universal constructions for large objects. Proc. of the International Workshop on Distributed Algorithms, pages 168--182, 1995.
[2]
H. Attiya, F. Kuhn, M. Wattenhofer, and R. Wattenhofer. Efficient adaptive collect using randomization. Proc. of the Intl. Symp. on Distributed Computing (DISC), pages 159--173, 2004.
[3]
G. Barnes. A method for implementing lock-free shared-data structures. Proc. of the ACM Symp. on Parallel Algorithms and Architectures (SPAA), pages 261--270, 1993.
[4]
M. Choy and A. K. Singh. Efficient fault tolerant algorithms for resource allocation in distributed systems. Proc. of ACM Symp. on Theory of Computing (STOC), pages 593--602, 1992.
[5]
P. H. Ha and P. Tsigas. Reactive multi-word synchronization for multiprocessors. The Journal of Instruction-Level Parallelism, page http://www.jilp.org/vol6/v6paper3.pdf, 2004.
[6]
T. L. Harris, K. Fraser, and I. A. Pratt. A practical multi-word compare-and-swap operation. Proc. of the Intl. Symp. on Distributed Computing (DISC), pages 265--279, 2002.
[7]
A. Israeli and L. Rappoport. Disjoint-access-parallel implementations of strong shared memory primitives. Proc. of Symp. on Principles of Distributed Computing (PODC), pages 151--160, 1994.
[8]
N. Linial. Locality in distributed graph algorithms. SIAM Journal on Computation, 21(1):193--201, 1992.
[9]
N. A. Lynch. Upper bounds for static resource allocation in a distributed system. Journal for Computer and System Sciences, 23(2):254--278, 1981.
[10]
M. Moir. Transparent support for wait-free transactions. Proc. of the Intl. Workshop on Distributed Algorithms, pages 305--319, 1997.
[11]
M. Naor and L. Stockmeyer. What can be computed locally? SIAM Journal on Computation, 24(6):1259--1277, 1995.
[12]
N. Shavit and D. Touitou. Software transactional memory. Proc. of Symp. on Principles of Distributed Computing (PODC), pages 204--213, 1995.
[13]
E. Styer and G. L. Peterson. Improved algorithms for distributed resource allocation. Proc. of Symp. on Principles of Distributed Computing (PODC), pages 615--628, 1988.

Cited By

View all
  • (2016)GreenBSTProceedings of the 22nd International Conference on Euro-Par 2016: Parallel Processing - Volume 983310.1007/978-3-319-43659-3_37(502-517)Online publication date: 24-Aug-2016
  • (2009)Reducers and other Cilk++ hyperobjectsProceedings of the twenty-first annual symposium on Parallelism in algorithms and architectures10.1145/1583991.1584017(79-90)Online publication date: 11-Aug-2009
  • (2008)Highly-concurrent multi-word synchronizationProceedings of the 9th international conference on Distributed computing and networking10.5555/1785854.1785867(112-123)Online publication date: 5-Jan-2008
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
PODC '05: Proceedings of the twenty-fourth annual ACM symposium on Principles of distributed computing
July 2005
364 pages
ISBN:1581139942
DOI:10.1145/1073814
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]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 17 July 2005

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. dining philosophers
  2. multi-word locking
  3. randomization
  4. shared memory

Qualifiers

  • Article

Conference

PODC05

Acceptance Rates

Overall Acceptance Rate 740 of 2,477 submissions, 30%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 18 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2016)GreenBSTProceedings of the 22nd International Conference on Euro-Par 2016: Parallel Processing - Volume 983310.1007/978-3-319-43659-3_37(502-517)Online publication date: 24-Aug-2016
  • (2009)Reducers and other Cilk++ hyperobjectsProceedings of the twenty-first annual symposium on Parallelism in algorithms and architectures10.1145/1583991.1584017(79-90)Online publication date: 11-Aug-2009
  • (2008)Highly-concurrent multi-word synchronizationProceedings of the 9th international conference on Distributed computing and networking10.5555/1785854.1785867(112-123)Online publication date: 5-Jan-2008
  • (2008)Highly-Concurrent Multi-word SynchronizationDistributed Computing and Networking10.1007/978-3-540-77444-0_9(112-123)Online publication date: 2008
  • (2007)Concurrency and the Principle of Data LocalityIEEE Distributed Systems Online10.5555/1304038.13040848:9(3)Online publication date: 1-Sep-2007
  • (2007)Concurrency and the Principle of Data LocalityIEEE Distributed Systems Online10.1109/MDSO.2007.43700998:9(3-3)Online publication date: Sep-2007

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media