Towards an Ideal Queue Lock

被引:1
|
作者
Jayanti, Prasad [1 ]
Jayanti, Siddhartha [2 ]
Jayanti, Sucharita [1 ]
机构
[1] Dartmouth Coll, Hanover, NH 03755 USA
[2] MIT, Cambridge, MA 02139 USA
关键词
mutual exclusion; concurrent algorithm; queue lock; distributed computing; RMR; SYNCHRONIZATION; ALGORITHMS;
D O I
10.1145/3369740.3369784
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The MCS lock was the first mutual exclusion lock to support an arbitrary number of processes with unknown identities such that each process can acquire and release the lock in a constant number of RMRs on both Cache-Coherent and Distributed Shared Memory multiprocessors. The MCS algorithm, however, has a shortcoming: its Exit section is not bounded. The algorithm also requires hardware support for more than one special instruction, namely, Fetch&Store and Compare&Swap. Many MCS-style algorithms were subsequently designed to overcome these shortcomings, but to the best of our knowledge they either lack some desirable property of the MCS lock or introduce a new shortcoming. In this paper we present a new MCS-style algorithm that has all of the desirable properties and no ostensible shortcoming. We also provide a rigorous, invariant-based proof of correctness. To realize a bounded Exit section, all prior MCS-style algorithms use either the "node-switching" or the "node-toggling" strategy. Our work unifies these two strategies: we present a single algorithm which, when appropriately instantiated, yields both a node-switching and a node-toggling algorithm. Moreover, the two algorithms so derived are the simplest in their respective classes among all known MCS-style algorithms.
引用
收藏
页数:10
相关论文
共 50 条
  • [21] TOWARDS IDEAL UNDERSTANDING
    Hubert, Mar
    Malfatti, Federica Isabella
    [J]. ERGO-AN OPEN ACCESS JOURNAL OF PHILOSOPHY, 2023, 10 : 578 - 611
  • [22] Towards the ideal synthesis
    Wender, Paul
    Handy, Scott
    Wright, Dennis
    [J]. Chemistry and Industry (London), 1997, (19):
  • [23] TOWARDS THE IDEAL GLYCOPEPTIDE
    FELMINGHAM, D
    [J]. JOURNAL OF ANTIMICROBIAL CHEMOTHERAPY, 1993, 32 (05) : 663 - 666
  • [24] TOWARDS AN IDEAL SUPERVISOR
    SAUNDERS, MNK
    COSGROVE, DE
    [J]. AREA, 1983, 15 (04) : 293 - 294
  • [25] Towards the ideal synthesis
    Wender, PA
    Handy, ST
    Wright, DL
    [J]. CHEMISTRY & INDUSTRY, 1997, (19) : 765 - +
  • [26] Towards the ideal beer
    Carantino, S
    [J]. BIOFUTUR, 1996, (160) : 63 - 65
  • [27] TOWARDS THE IDEAL HOME
    不详
    [J]. BRITISH MEDICAL JOURNAL, 1948, 1 (4549): : 511 - 511
  • [28] Towards a Queue Sensitive Transport Protocol
    Kumar, Riteshi
    Kaur, Jasleen
    [J]. 2008 IEEE INTERNATIONAL PERFORMANCE, COMPUTING AND COMMUNICATIONS CONFERENCE (IPCCC 2008), 2008, : 319 - 326
  • [29] SCEM-PHASE-LOCK LOOP AND IDEAL FM DISCRIMINATION
    SCOTT, RE
    HALIJAK, CA
    [J]. IEEE TRANSACTIONS ON COMMUNICATIONS, 1977, 25 (03) : 390 - 392
  • [30] Integrating Lock-Free and Combining Techniques for a Practical and Scalable FIFO Queue
    Min, Changwoo
    Eom, Young Ik
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2015, 26 (07) : 1910 - 1922