具有多对数步复杂度的无等待队列
A Wait-free Queue with Polylogarithmic Step Complexity
AI总结:
提出一种基于单字CAS指令的线性化无等待队列,入队O(log p)步,出队O(log^2 p + log q)步,有界空间版本均摊O(log p log(p+q))步,优于先前Ω(p)的复杂度。
摘要:
我们提出了一种使用单字CAS指令的新型线性化无等待队列实现。先前基于CAS的无锁队列实现在最坏情况执行中每次操作的均摊步复杂度为Ω(p),其中p是访问队列的进程数。我们的新无等待队列每次入队操作需要O(log p)步,每次出队操作需要O(log^2 p + log q)步,其中q是队列的大小。该实现的有界空间版本每次操作的均摊步复杂度为O(log p log(p+q))。
英文摘要:
We present a novel linearizable wait-free queue implementation using single-word CAS instructions. Previous lock-free queue implementations from CAS all have amortized step complexity of $Ω(p)$ per operation in worst-case executions, where $p$ is the number of processes that access the queue. Our new wait-free queue takes $O(\log p)$ steps per enqueue and $O(\log^2 p +\log q)$ steps per dequeue, where $q$ is the size of the queue. A bounded-space version of the implementation has $O(\log p \log(p+q))$ amortized step complexity per operation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。