A MODULAR DRINKING PHILOSOPHERS ALGORITHM

被引:16
作者
WELCH, JL [1 ]
LYNCH, NA [1 ]
机构
[1] MIT,COMP SCI LAB,CAMBRIDGE,MA 02139
关键词
DINING PHILOSOPHERS; DISTRIBUTED ALGORITHMS; DRINKING PHILOSOPHERS; MODULARITY; RESOURCE ALLOCATION;
D O I
10.1007/BF02242711
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A variant of the drinking philosophers algorithm of Chandy and Misra is described and proved correct in a modular way. The algorithm of Chandy and Misra is based on a particular dining philosophers algorithm and relies on certain properties of its implementation. The drinking philosophers algorithm presented in this paper is able to use an arbitrary dining philosophers algorithm as a subroutine; nothing about the implementation needs to be known, only that it solves the dining philosophers problem. An important advantage of this modularity is that by substituting a more time-efficient dining philosophers algorithm than the one used by Chandy and Misra, a drinking philosophers algorithm with O(1) worst-case waiting time is obtained, whereas the drinking philosophers algorithm of Chandy and Misra has O(n) worst-case waiting time (for n philosophers). Careful definitions are given to distinguish the drinking and dining philosophers problems and to specify varying degrees of concurrency.
引用
收藏
页码:233 / 244
页数:12
相关论文
共 14 条
[1]  
AWERBUCH B, 1990, 31ST P ANN IEEE S F, P65
[2]  
CHANDY KM, 1984, ACM T PROGR LANG SYS, V6, P632, DOI 10.1145/1780.1804
[3]  
CHOY M, 1992, 21ST P ANN ACM S THE, P593
[4]  
Dijkstra E. W., 1971, ACTA INFORM, V1, P115, DOI DOI 10.1007/BF00289519
[5]  
GINAT D, 1989, LECT COMPUT SCI, P83
[6]  
LEHMANN D, 1981, 10TH P ACM S PRINC P, P133
[8]  
LYNCH NA, 1987, 6TH P ACM S PRINC DI, P137
[9]  
MURPHY SL, 1988, ACM T PROGR LANG SYS, V10, P178
[10]  
PETERSON GL, 1977, 9TH P ACM S THEOR CO, P91