Nonatomic dual bakery algorithm with bounded tokens

被引:4
作者
Aravind, Alex A. [1 ]
Hesselink, Wim H. [2 ]
机构
[1] Univ No British Columbia, Comp Sci Program, Prince George, BC V2N 4Z9, Canada
[2] Univ Groningen, Dept Comp Sci, NL-9700 AK Groningen, Netherlands
关键词
MUTUAL EXCLUSION PROBLEM; COMMUNICATION; ARBITRATION;
D O I
10.1007/s00236-011-0132-0
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
A simple mutual exclusion algorithm is presented that only uses nonatomic shared variables of bounded size, and that satisfies bounded overtaking. When the shared variables behave atomically, it has the first-come-first-served property (FCFS). Nonatomic access makes information vulnerable. The effects of this can be mitigated by minimizing the information and by spreading it over more variables. The design approach adopted here begins with such mitigating efforts. These resulted in an algorithm with a proof of correctness, first for atomic variables. This proof is then used as a blueprint for the simultaneous development of the algorithm for nonatomic variables and its proof. Mutual exclusion is proved by means of invariants. Bounded overtaking and liveness under weak fairness are proved with invariants and variant functions. Liveness under weak fairness is formalized and proved in a set-theoretic version of temporal logic. All these assertions are verified with the proof assistant PVS. We heavily rely on the possibility offered by a proof assistant like PVS to reuse proofs developed for one context in a different context.
引用
收藏
页码:67 / 96
页数:30
相关论文
共 39 条
[1]   THE EXISTENCE OF REFINEMENT MAPPINGS [J].
ABADI, M ;
LAMPORT, L .
THEORETICAL COMPUTER SCIENCE, 1991, 82 (02) :253-284
[2]  
Abraham U., 1993, P CONC SPEC PROGR WO, P7
[3]   A FINE-GRAINED SOLUTION TO THE MUTUAL EXCLUSION PROBLEM [J].
ANDERSON, JH .
ACTA INFORMATICA, 1993, 30 (03) :249-265
[4]   Shared-memory mutual exclusion: major research trends since 1986 [J].
Anderson, JH ;
Kim, YJ ;
Herman, T .
DISTRIBUTED COMPUTING, 2003, 16 (2-3) :75-110
[5]  
[Anonymous], 2004, The SPIN Model Checker-Primer and Reference Manual
[6]  
[Anonymous], 2008, ART MULTIPROCESSOR P
[7]   An arbitration algorithm for multiport memory systems [J].
Aravind, Alex A. .
IEICE ELECTRONICS EXPRESS, 2005, 2 (19) :488-494
[8]   A queue based mutual exclusion algorithm [J].
Aravind, Alex A. ;
Hesselink, Wim H. .
ACTA INFORMATICA, 2009, 46 (01) :73-86
[9]  
Dijkstra E. W., 1968, Programming languages, P43
[10]   SOLUTION OF A PROBLEM IN CONCURRENT PROGRAMMING CONTROL [J].
DIJKSTRA, EW .
COMMUNICATIONS OF THE ACM, 1965, 8 (09) :569-&