N 个进程的公平互斥(扩展版)
Fair Mutual Exclusion for N Processes (extended version)
AI总结:
本文研究 Peterson 互斥算法到 N 进程的锦标赛树推广,证明其非无饥饿,并提出公平版本,证明对任意 N≥4 时其他进程最多先进入 (N-1)(N-2) 次。
摘要:
Peterson 的双进程互斥算法已以多种方式推广到 N 个进程。据我们所知,在不做任何公平性假设的情况下,此类推广均无法保证无饥饿。本文研究使用锦标赛树将 Peterson 算法推广到 N 个进程。利用 mCRL2 语言和工具集,我们证明除非加入弱公平性假设,否则该算法不是无饥饿的。受无饥饿反例的启发,我们提出了 Peterson 算法的公平 N 进程推广。我们使用模型检验证明新算法对较小的 N 是正确的。对于任意 N,由于状态空间爆炸问题,模型检验不可行,因此我们给出一个一般性证明:对于 N ≥ 4,当一个进程请求访问临界区时,其他进程最多能先进入 (N-1)(N-2) 次。
英文摘要:
Peterson's mutual exclusion algorithm for two processes has been generalized to $N$ processes in various ways. As far as we know, no such generalization is starvation free without making any fairness assumptions. In this paper, we study the generalization of Peterson's algorithm to $N$ processes using a tournament tree. Using the mCRL2 language and toolset we prove that it is not starvation free unless weak fairness assumptions are incorporated. Inspired by the counterexample for starvation freedom, we propose a fair $N$-process generalization of Peterson's algorithm. We use model checking to show that our new algorithm is correct for small $N$. For arbitrary $N$, model checking is infeasible due to the state space explosion problem, and instead, we present a general proof that, for $N \geq 4$, when a process requests access to the critical section, other processes can enter first at most $(N-1)(N-2)$ times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。