Skip to main content

Read/Write Based Fast-Path Transformation for FCFS Mutual Exclusion

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3381))

Abstract

Lamport observed that in practical systems processes rarely compete for the entry into the Critical Section [1]. This led to research on fast mutual exclusion algorithms that, in the absence of contention, allow a process to enter and exit the Critical Section in O(1) steps. Anderson and Kim designed a general transformation that can turn any mutual exclusion algorithm \(\mathcal{A}\) into a new algorithm \(\mathcal{A'}\) that is fast [2]. Their transformation, however, does not preserve the fairness property FCFS. The main result of this paper is the design of a new transformation which works similarly as Anderson and Kim’s, but additionally preserves FCFS. Our transformation, like theirs, requires only read/write registers.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Lamport, L.: A fast mutual exclusion algorithm. ACM Transactions on Computer Systems 5, 1–11 (1987)

    Article  Google Scholar 

  2. Anderson, J., Kim, Y.J.: A new fast-path mechanism for mutual exclusion. Distributed Computing 14, 17–29 (2001)

    Article  Google Scholar 

  3. Dijkstra, E.: Solution of a problem in concurrent programming control. Communications of the ACM 8, 569 (1965)

    Article  Google Scholar 

  4. Lamport, L.: A new solution of Dijkstra’s concurrent programming problem. Communications of the ACM 17, 453–455 (1974)

    Article  MATH  MathSciNet  Google Scholar 

  5. Culler, D., Singh, J., Gupta, A.: Parallel Computer Architecture: A Hardware/Software Approach. Morgan-Kaufmann, San Francisco (1998)

    Google Scholar 

  6. Afek, Y., Stupp, G., Touitou, D.: Long-lived and adaptive collect with applications. In: Proceedings of the 40th Annual IEEE Symposium on Foundations of Computer Science, pp. 262–272 (1999)

    Google Scholar 

  7. Anderson, J., Kim, Y.J.: Adaptive mutual exclusion with local spinning. In: Herlihy, M.P. (ed.) DISC 2000. LNCS, vol. 1914, pp. 29–43. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  8. Anderson, J., Kim, Y.J.: Local-spin mutual exclusion using fetch-and-φ primitives (2002) (unpublished manuscript)

    Google Scholar 

  9. Anderson, T.: The performance of spin lock alternatives for shared memory multiprocessors. IEEE Transactions on Parallel and Distributed Systems 1, 6–16 (1990)

    Article  Google Scholar 

  10. Attiya, H., Bortnikov, V.: Adaptive and efficient mutual exclusion. In: Proceedings of the 19th Annual Symposium on Principles of Distributed Computing (2000)

    Google Scholar 

  11. Craig, T.S.: Queuing spin-lock algorithms to support timing predictability. In: Proceedings of the Real Time Systems Symposium, pp. 148–157 (1993)

    Google Scholar 

  12. Jayanti, P.: F-arrays: implementation and applications. In: Proceedings of the 21st Annual Symposium on Principles of Distributed Computing, pp. 270–279 (2002)

    Google Scholar 

  13. Mellor-Crummey, J.M., Scott, M.L.: Algorithms for scalable synchronization on shared-memory multiprocessors. ACM Transactions on Computer Systems 9, 21–65 (1991)

    Article  Google Scholar 

  14. Scott, M.L.: Non-blocking timeout in scalable queue-based spin locks. In: Proceedings of the 21st Annual Symposium on Principles of Distributed Computing (2002)

    Google Scholar 

  15. Lycklama, E., Hadzilacos, V.: A first-come-first-served mutual-exclusion algorithm with small communication variables. ACM Transactions on Programming Languages and Systems 13, 558–576 (1991)

    Article  Google Scholar 

  16. Bershad, B.N.: Practical considerations for non-blocking concurrent objects. In: Proceedings of the 13th IEEE International Conference on Distributed Computing Systems, pp. 264–273 (1993)

    Google Scholar 

  17. Jayanti, P., Petrovic, S., Narula, N.: Read/write based fast-path transformation for FCFS mutual exclusion. Technical Report TR 2004 522, Dartmouth College Computer Science Department (2004)

    Google Scholar 

  18. Yang, J.H., Anderson, J.: A fast, scalable mutual exclusion algorithm. Distributed Computing 9, 51–60 (1995)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Jayanti, P., Petrovic, S., Narula, N. (2005). Read/Write Based Fast-Path Transformation for FCFS Mutual Exclusion. In: Vojtáš, P., Bieliková, M., Charron-Bost, B., Sýkora, O. (eds) SOFSEM 2005: Theory and Practice of Computer Science. SOFSEM 2005. Lecture Notes in Computer Science, vol 3381. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30577-4_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-30577-4_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-24302-1

  • Online ISBN: 978-3-540-30577-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics