Simple mutual exclusion algorithms based on bounded tickets on the asynchronous shared memory model

被引:0
作者
Takamura, M [1 ]
Igarashi, Y [1 ]
机构
[1] Gunma Univ, Dept Comp Sci, Kiryu, Gumma 3768515, Japan
关键词
asynchronous shared memory model; Bakery algorithm; concurrent computation; distributed algorithms; mutual exclusion;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We propose two simple algorithms based on bounded tickets for the mutual exclusion problem on the asynchronous single-writer/multi-reader shared memory model. These algorithms are modifications of the Bakery algorithm. An unattractive property of the Bakery algorithm is that the size of its shared memory is unbounded. Initially we design a provisional algorithm based on bounded tickets. It guarantees mutual exclusion in the case where a certain condition is satisfied. To remove the condition, we use an additional process that does not correspond to any user. The algorithm with the additional process is a lockout-free mutual exclusion algorithm on the asynchronous single-writer/multi-reader shared memory model. We then modify this algorithm to reduce the shared memory size with the cost of using another additional process. The maximum waiting time using each of the algorithms proposed in this paper is bounded by (n - 1)c + O(nl), where n is the number of users, l is an upper bound on the time between two successive atomic steps, and c is an upper bound on the time that any user spends using the resource. The shared memory size needed by the first algorithm and the second algorithm are (n + 1)(1 + [log(4n)]) bits and n(1 + log(4n - 4)]) + 2 bits, respectively.
引用
收藏
页码:246 / 254
页数:9
相关论文
共 23 条
[1]  
ABRAHAM U, 2001, BAKERY ALGORITHMS
[2]  
Anderson J. H., 2001, P 20 ANN ACM S PRINC, P3
[3]  
ATTIYA H, 1998, DISTRIBUTED COMPUTIN
[4]   BOUNDS ON SHARED-MEMORY FOR MUTUAL EXCLUSION [J].
BURNS, JE ;
LYNCH, NA .
INFORMATION AND COMPUTATION, 1993, 107 (02) :171-184
[5]   DATA REQUIREMENTS FOR IMPLEMENTATION OF N-PROCESS MUTUAL EXCLUSION USING A SINGLE SHARED VARIABLE [J].
BURNS, JE ;
JACKSON, P ;
LYNCH, NA ;
FISCHER, MJ ;
PETERSON, GL .
JOURNAL OF THE ACM, 1982, 29 (01) :183-205
[6]  
BURNS JE, 1978, ACM SIGACT NEWS, V10, P42
[7]  
CREMERS AB, 1978, LECT NOTES COMP SCI, V62, P165
[8]   SOLUTION OF A PROBLEM IN CONCURRENT PROGRAMMING CONTROL [J].
DIJKSTRA, EW .
COMMUNICATIONS OF THE ACM, 1965, 8 (09) :569-&
[9]   Bounded concurrent time-stamping [J].
Dolev, D ;
Shavit, N .
SIAM JOURNAL ON COMPUTING, 1997, 26 (02) :418-455
[10]   DISTRIBUTED FIFO ALLOCATION OF IDENTICAL RESOURCES USING SMALL SHARED SPACE [J].
FISCHER, MJ ;
LYNCH, NA ;
BURNS, JE ;
BORODIN, A .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1989, 11 (01) :90-114