• DocumentCode
    2044004
  • Title

    Composite Abortable Locks

  • Author

    Marathe, Virendra J. ; Moir, Mark ; Shavit, Nir

  • Author_Institution
    Dept. of Comput. Sci., Rochester Univ., NY
  • fYear
    2006
  • fDate
    25-29 April 2006
  • Firstpage
    1
  • Lastpage
    10
  • Abstract
    The need to allow threads to abort an attempt to acquire a lock (sometimes called a timeout) is an interesting new requirement driven by state-of-the-art database applications with soft real-time constraints. This paper presents a new composite abortable lock (CAL), a combination of abortable queue-based (QL) and test-and-set based backoff (BL) lock mechanisms, which provides non-blocking aborts while ensuring low space requirements without need for a memory reclamation scheme. The key observation motivating our approach is that the fast lock hand-off achieved by QLs only requires the first few threads to be queued (not all waiting threads), and that the remaining threads can run as in a BL. We developed an algorithm that uses only a short fixed size structure for queueing, allowing most threads to back-off. This reduces worst-case space overhead dramatically, and improves performance by eliminating the need for expensive and complicated memory management mechanisms. Experimental results show that our new CAL algorithm not only saves on space, it actually outperforms Scott´s state-of-the-art nonblocking abortable QL under contention, and even more so when there are more threads than processors. Moreover, as the rate of lock aborts increases, the CAL continues to perform well, while Scott´s algorithm deteriorates rapidly
  • Keywords
    multi-threading; queueing theory; Scott algorithm; abortable queue-based lock mechanism; composite abortable locks; nonblocking abortable QL; test-and-set based backoff lock mechanism; threading; Application software; Computer science; Content management; Databases; Laboratories; Memory management; Sun; System recovery; Testing; Yarn;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Parallel and Distributed Processing Symposium, 2006. IPDPS 2006. 20th International
  • Conference_Location
    Rhodes Island
  • Print_ISBN
    1-4244-0054-6
  • Type

    conf

  • DOI
    10.1109/IPDPS.2006.1639367
  • Filename
    1639367