wCQ: A Fast Wait-Free Queue with Bounded Memory Usage

Ruslan Nikolaev, Binoy Ravindran
1/6/2022
11 citations
cs.DC

Official code: rusnikola/lfqueue (76 stars, C, last commit 2026-09-25). 1 more implementation below.

Abstract

The concurrency literature presents a number of approaches for building non-blocking, FIFO, multiple-producer and multiple-consumer (MPMC) queues. However, only a fraction of them have high performance.

Show full abstract

In addition, many queue designs, such as LCRQ, trade memory usage for better performance. The recently proposed SCQ design achieves both memory efficiency as well as excellent performance. Unfortunately, both LCRQ and SCQ are only lock-free. On the other hand, existing wait-free queues are either not very performant or suffer from potentially unbounded memory usage. Strictly described, the latter queues, such as Yang & Mellor-Crummey's (YMC) queue, forfeit wait-freedom as they are blocking when memory is exhausted. We present a wait-free queue, called wCQ. wCQ is based on SCQ and uses its own variation of fast-path-slow-path methodology to attain wait-freedom and bound memory usage. Our experimental studies on x86 and PowerPC architectures validate wCQ's great performance and memory efficiency. They also show that wCQ's performance is often on par with the best known concurrent queue designs.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
rusnikola/lfqueueOfficial76C–2026-09-25
rusnikola/wfqueueOfficial11––2026-09-25
rusnikola/lfqueueOfficial100%

A Scalable, Portable, and Memory-Efficient Lock-Free FIFO Queue (DISC '19)

769C, ShellOct 22, 20192 months ago
rusnikola/wfqueueOfficial100%

wCQ: A Fast Wait-Free Queue with Bounded Memory Usage (SPAA '22)

110Jul 13, 20222 months ago

Similar Papers

Cite this paper

@article{nikolaev2022wcq,
  title  = {wCQ: A Fast Wait-Free Queue with Bounded Memory Usage},
  author = {Ruslan Nikolaev and Binoy Ravindran},
  year   = {2022},
  eprint = {2201.02179},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.02179}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.02179.svg)](https://codeofpaper.com/paper/2201.02179)

Discussion