使用共识数为2的原语实现强线性化
Strong Linearizability using Primitives with Consensus Number 2
AI总结:
本文研究在共识数为2的现实原语(如test&set、fetch&add)上能否实现对象的无等待强线性化,证明部分共识数为1和2的对象可实现,但队列、栈及其松弛变体即使使用fetch&add、swap和test&set也不具有无锁强线性化实现。
摘要:
设计复杂并发程序的一个强大工具是通过与来自较低层级原语的对象实现进行组合。强线性化实现允许保留超性质,例如随机化程序的概率保证。然而,对于许多对象而言,唯一已知的无等待强线性化实现依赖于compare&swap,这是一种通用原语,允许任意数量的进程解决共识问题。尽管这些对象具有基于read/write原语的无等待线性化实现,而这些原语并不支持共识。本文研究了一个中间地带,探讨是否存在基于现实原语(如test&set或fetch&add,其共识数为2)的无等待强线性化实现。我们证明许多共识数为1的对象具有基于fetch&add的无等待强线性化实现。我们还证明若干共识数为2的对象具有基于其他共识数为2对象的无等待或无锁实现。相比之下,我们证明即使使用fetch&add、swap和test&set原语,某些共识数为2的对象也不具有无锁强线性化实现。这包括队列和栈,以及它们的松弛变体。
英文摘要:
A powerful tool for designing complex concurrent programs is through composition with object implementations from lower-level primitives. Strongly-linearizable implementations allow to preserve hyper-properties, e.g., probabilistic guarantees of randomized programs. However, the only known wait-free strongly-linearizable implementations for many objects rely on compare&swap, a universal primitive that allows any number of processes to solve consensus. This is despite the fact that these objects have wait-free linearizable implementations from read / write primitives, which do not support consensus. This paper investigates a middle-ground, asking whether there are wait-free strongly-linearizable implementations from realistic primitives such as test&set or fetch&add, whose consensus number is 2. We show that many objects with consensus number 1 have wait-free strongly-linearizable implementations from fetch&add. We also show that several objects with consensus number 2 have wait-free or lock-free implementations from other objects with consensus number 2. In contrast, we prove that even when fetch&add, swap and test&set primitives are used, some objects with consensus number 2 do not have lock-free strongly-linearizable implementations. This includes queues and stacks, as well as relaxed variants thereof.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。