RMR-Efficient Randomized Abortable Mutual Exclusion

(Extended Abstract)
  • Abhijeet Pareek
  • Philipp Woelfel
Part of the Lecture Notes in Computer Science book series (LNCS, volume 7611)


Recent research on mutual exclusion for shared-memory systems has focused on local spin algorithms. Performance is measured using the remote memory references (RMRs) metric. As common in recent literature, we consider a standard asynchronous shared memory model with N processes, which allows atomic read, write and compare-and-swap (short: CAS) operations.

In such a model, the asymptotically tight upper and lower bounds on the number of RMRs per passage through the Critical Section is Θ(logN) for the optimal deterministic algorithms [6,22]. Recently, several randomized algorithms have been devised that break the Ω(logN) barrier and need only o(logN) RMRs per passage in expectation [7,13,14]. In this paper we present the first randomized abortable mutual exclusion algorithm that achieves a sub-logarithmic expected RMR complexity. More precisely, against a weak adversary (which can make scheduling decisions based on the entire past history, but not the latest coin-flips of each process) every process needs an expected number of O(logN/loglogN) RMRs to enter end exit the critical section. If a process receives an abort-signal, it can abort an attempt to enter the critical section within a finite number of its own steps and by incurring O(logN/loglogN) RMRs.


Abortable Mutual Exclusion Remote Memory References RMRs Weak Adversary Randomization Shared Memory 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Anderson, J.H., Kim, Y.-J.: Fast and Scalable Mutual Exclusion. In: Jayanti, P. (ed.) DISC 1999. LNCS, vol. 1693, pp. 180–195. Springer, Heidelberg (1999)CrossRefGoogle Scholar
  2. 2.
    Anderson, J.H., Kim, Y.-J.: An improved lower bound for the time complexity of mutual exclusion. Dist. Comp. 15 (2002)Google Scholar
  3. 3.
    Anderson, J.H., Kim, Y.-J., Herman, T.: Shared-memory mutual exclusion: major research trends since 1986. Dist. Comp. 16 (2003)Google Scholar
  4. 4.
    Anderson, T.: The performance of spin lock alternatives for shared-memory multiprocessors. IEEE Trans. Parallel Distrib. Syst. 1 (1990)Google Scholar
  5. 5.
    Aspnes, J.: Randomized protocols for asynchronous consensus. Dist. Comp. 16(2-3) (2003)Google Scholar
  6. 6.
    Attiya, H., Hendler, D., Woelfel, P.: Tight RMR lower bounds for mutual exclusion and other problems. In: 40th STOC (2008)Google Scholar
  7. 7.
    Bender, M.A., Gilbert, S.: Mutual exclusion with o(log2 logn) amortized work. In: 52nd FOCS (2011)Google Scholar
  8. 8.
    Danek, R., Golab, W.: Closing the complexity gap between mutual exclusion and fcfs mutual exclusion. In: 27th PODC (2008)Google Scholar
  9. 9.
    Dijkstra, E.W.: Solution of a problem in concurrent programming control. Communications of the ACM 8 (1965)Google Scholar
  10. 10.
    Giakkoupis, G., Woelfel, P.: Tight rmr lower bounds for randomized mutual exclusion. In: 44th STOC (to appear, 2012)Google Scholar
  11. 11.
    Golab, W., Hadzilacos, V., Hendler, D., Woelfel, P.: Constant-rmr implementations of cas and other synchronization primitives using read and write operations. In: 26th PODC (2007)Google Scholar
  12. 12.
    Golab, W., Higham, L., Woelfel, P.: Linearizable implementations do not suffice for randomized distributed computation. In: 43rd STOC (2011)Google Scholar
  13. 13.
    Hendler, D., Woelfel, P.: Adaptive randomized mutual exclusion in sub-logarithmic expected time. In: 29th PODC (2010)Google Scholar
  14. 14.
    Hendler, D., Woelfel, P.: Randomized mutual exclusion with sub-logarithmic rmr-complexity. Dist. Comp. 24(1) (2011)Google Scholar
  15. 15.
    Herlihy, M., Wing, J.: Linearizability: a correctness condition for concurrent objects. ACM Trans. Program. Lang. Syst. 12 (1990)Google Scholar
  16. 16.
    Jayanti, P.: Adaptive and efficient abortable mutual exclusion. In: 22nd PODC (2003)Google Scholar
  17. 17.
    Kim, Y.-J., Anderson, J.H.: A Time Complexity Bound for Adaptive Mutual Exclusion (Extended Abstract). In: Welch, J.L. (ed.) DISC 2001. LNCS, vol. 2180, p. 1. Springer, Heidelberg (2001)CrossRefGoogle Scholar
  18. 18.
    Kim, Y.-J., Anderson, J.H.: Adaptive mutual exclusion with local spinning. Dist. Comp. 19 (2007)Google Scholar
  19. 19.
    Mellor-Crummey, J., Scott, M.: Algorithms for scalable synchronization on shared-memory multiprocessors. ACM Trans. Comp. Syst. 9 (1991)Google Scholar
  20. 20.
    Pareek, A., Woelfel, P.: RMR-efficient randomized abortable mutual exclusion. arXiv:1208.1723 (2012)Google Scholar
  21. 21.
    Scott, M.: Non-blocking timeout in scalable queue-based spin locks. In: 21st PODC (2002)Google Scholar
  22. 22.
    Yang, J., Anderson, J.: A fast, scalable mutual exclusion algorithm. Dist. Comp. 9 (1995)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Abhijeet Pareek
    • 1
  • Philipp Woelfel
    • 1
  1. 1.University of CalgaryCanada

Personalised recommendations