内存匿名且无饥饿的互斥:可能性与不可能性结果
Memory-Anonymous Starvation-Free Mutual Exclusion: Possibility and Impossibility Results
AI总结:
本文研究匿名共享内存系统中的无饥饿互斥问题,针对无记忆算法证明:两进程使用m≥7个匿名寄存器可实现无饥饿互斥当且仅当m为奇数,而三进程及以上则不可能实现,揭示了无故障系统中全局进展与个体进展之间的根本性差异。
摘要:
在匿名共享内存系统中,所有进程间通信都通过共享对象进行;然而,与标准系统不同,进程之间对共享对象的名称没有先验约定[14,15]。此外,算法被要求是对称的;也就是说,进程应执行完全相同的代码,区分进程的唯一方式是比较标识符是否相等。对于这样的系统,读/写寄存器被称为匿名寄存器。已知对于任意有限数量的进程,使用匿名寄存器可以解决对称的无死锁互斥问题[1]。[14,15]中遗留的主要问题是:对于两个或更多进程,是否存在无饥饿互斥算法。我们针对无记忆算法解决了这一遗留问题,在无记忆算法中,试图进入临界区的进程不会使用关于其先前尝试的任何信息。几乎所有已知的互斥算法都是无记忆的。我们证明:(1) 对于两个进程,使用$m \geq 7$个匿名寄存器存在对称的无记忆无饥饿互斥算法,当且仅当$m$为奇数;(2) 对于$n\geq 3$个进程,使用(任意数量的)匿名寄存器不存在对称的无记忆无饥饿互斥算法。我们的不可能性结果是唯一一个具有无故障进程的系统示例,其中可以确保全局进展(即无死锁),但无法确保每个进程的个体进展(即无饥饿)。它补充了关于具有易故障进程系统的已知结果,即存在具有无锁实现但没有无等待实现的对象[2,5]。
英文摘要:
In an anonymous shared memory system, all inter-process communications are via shared objects; however, unlike in standard systems, there is no a priori agreement between processes on the names of shared objects [14,15]. Furthermore, the algorithms are required to be symmetric; that is, the processes should execute precisely the same code, and the only way to distinguish processes is by comparing identifiers for equality. For such a system, read/write registers are called anonymous registers. It is known that symmetric deadlock-free mutual exclusion is solvable for any finite number of processes using anonymous registers [1]. The main question left open in [14,15] is the existence of starvation-free mutual exclusion algorithms for two or more processes. We resolve this open question for memoryless algorithms, in which a process that tries to enter its critical section does not use any information about its previous attempts. Almost all known mutual exclusion algorithms are memoryless. We show that (1) there is a symmetric memoryless starvation-free mutual exclusion algorithm for two processes using $m \geq 7$ anonymous registers if and only if $m$ is odd; and (2) there is no symmetric memoryless starvation-free mutual exclusion algorithm for $n\geq 3$ processes using (any number of) anonymous registers. Our impossibility result is the only example of a system with fault-free processes, where global progress (i.e., deadlock-freedom) can be ensured, while individual progress to each process (i.e., starvation-freedom) cannot. It complements a known result for systems with failure-prone processes, that there are objects with lock-free implementations but without wait-free implementations [2,5].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。