arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1608.06033cs.DC
收藏

最优空间中的确定性快速随机测试集

Deterministic and Fast Randomized Test-and-Set in Optimal Space

George Giakkoupis, Maryam Helmi, Lisa Higham, Philipp Woelfel

摘要:

test-and-set对象是共享内存系统的基本同步原语。一个test-and-set对象存储一个位,初始化为0,并支持一个操作test&set(),该操作将位的值设置为1并返回其先前的值。本文研究了在具有n个进程的标准异步共享内存模型中,实现测试和设置对象所需的原子寄存器数量。对于无障碍(Giakkoupis和Woelfel,2012)和无死锁(Styer和Peterson,1989)实现,最佳下限是log(n)-1。最近提出了一种使用O(sqrt(n))寄存器的确定性无障碍实现(Giakkoupis,Helmi,Higham和Woelfel,2013)。本文关闭了这些已知的上限和下限之间的差距,提出了一个确定性的无障碍实现的测试和设置对象从Theta(log n)寄存器的大小Theta(log n)位。我们还提供了一种技术来转换任何确定性的无障碍算法,其中,从任何配置,任何过程都可以完成,如果它运行了b个步骤没有干扰,到一个随机的无等待算法的不经意的对手,其中预期的步骤复杂度是多项式在n和b。这种转换允许我们将我们的无障碍算法与Giakkoupis和Woelfel(2012)的随机测试和设置算法相结合,以从Theta(log n)寄存器获得随机无等待的测试和设置算法,具有针对遗忘对手的预期步骤复杂度Theta(log* n)。

英文摘要:

The test-and-set object is a fundamental synchronization primitive for shared memory systems. A test-and-set object stores a bit, initialized to 0, and supports one operation, test&set(), which sets the bit's value to 1 and returns its previous value. This paper studies the number of atomic registers required to implement a test-and-set object in the standard asynchronous shared memory model with n processes. The best lower bound is log(n)-1 for obstruction-free (Giakkoupis and Woelfel, 2012) and deadlock-free (Styer and Peterson, 1989) implementations. Recently a deterministic obstruction-free implementation using O(sqrt(n)) registers was presented (Giakkoupis, Helmi, Higham, and Woelfel, 2013). This paper closes the gap between these known upper and lower bounds by presenting a deterministic obstruction-free implementation of a test-and-set object from Theta(log n) registers of size Theta(log n) bits. We also provide a technique to transform any deterministic obstruction-free algorithm, in which, from any configuration, any process can finish if it runs for b steps without interference, into a randomized wait-free algorithm for the oblivious adversary, in which the expected step complexity is polynomial in n and b. This transformation allows us to combine our obstruction-free algorithm with the randomized test-and-set algorithm by Giakkoupis and Woelfel (2012), to obtain a randomized wait-free test-and-set algorithm from Theta(log n) registers, with expected step-complexity Theta(log* n) against the oblivious adversary.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑