错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

A wait-free queue with polylogarithmic step complexity

  • Hossein Naderibeni,
  • Eric Ruppert

摘要

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 \(\Omega (p)\) Ω ( 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)\) O ( log p ) steps per enqueue and \(O(\log ^2 p +\log q)\) 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))\) O ( log p log ( p + q ) ) amortized step complexity per operation.