论寄存器的线性化与终止性
On Register Linearizability and Termination
摘要:
在一项开创性的工作中,Golab等人表明,如果我们将原子对象替换为可线性化的对象,那么使用原子对象的随机算法可能会失去一些属性。不知道可能丧失的属性是否包括终止的重要属性(概率为1)。在本文中,我们首先表明,对于随机算法,终止确实可以丢失。Golab等人还引入了强线性化,并证明了强线性化对象可以像原子对象一样使用,即使对于随机算法也是如此:它们保持了算法的正确性,包括终止性。不幸的是,在一些重要的情况下,不可能实现强线性化。具体地,Helmi等人的MWMR寄存器不具有来自SWMR寄存器的强线性化实现。因此,我们提出了一种新的寄存器线性化,称为写强线性化,这是严格强于线性化,但严格弱于强线性化。我们证明了一些随机算法,未能终止与线性化寄存器,工作与写强线性化的。换句话说,存在可线性化性不足但可写入强线性化性的情况。与上述不可能性结果相反,我们证明了写强线性化MWMR寄存器是可以从SWMR寄存器实现的。实现写强线性化,但是,比实现线性化更难:我们给出了一个简单的实现MWMR寄存器从SWMR寄存器,我们证明了这种实现是线性化的,但不写强线性化。最后,我们证明了任何线性实现的SWMR寄存器一定写强线性化,这适用于共享内存,消息传递,和混合系统。
英文摘要:
In a seminal work, Golab et al. showed that a randomized algorithm that works with atomic objects may lose some of its properties if we replace the atomic objects that it uses with linearizable objects. It was not known whether the properties that can be lost include the important property of termination (with probability 1). In this paper, we first show that, for randomized algorithms, termination can indeed be lost. Golab et al. also introduced strong linearizability, and proved that strongly linearizable objects can be used as if they were atomic objects, even for randomized algorithms: they preserve the algorithm's correctness properties, including termination. Unfortunately, there are important cases where strong linearizability is impossible to achieve. In particular, Helmi et al. MWMR registers do not have strongly linearizable implementations from SWMR registers. So we propose a new type of register linearizability, called write strong-linearizability, that is strictly stronger than linearizability but strictly weaker than strong linearizability. We prove that some randomized algorithms that fail to terminate with linearizable registers, work with write strongly-linearizable ones. In other words, there are cases where linearizability is not sufficient but write strong-linearizability is. In contrast to the impossibility result mentioned above, we prove that write strongly-linearizable MWMR registers are implementable from SWMR registers. Achieving write strong-linearizability, however, is harder than achieving just linearizability: we give a simple implementation of MWMR registers from SWMR registers and we prove that this implementation is linearizable but not write strongly-linearizable. Finally, we prove that any linearizable implementation of SWMR registers is necessarily write strongly-linearizable; this holds for shared-memory, message-passing, and hybrid systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。