English

Practical Multiwriter Lock-Free Queues for "Hard Real-Time" Systems without CAS

Operating Systems 2007-10-01 v1 Distributed, Parallel, and Cluster Computing

Abstract

FIFO queues with a single reader and writer can be insufficient for "hard real-time" systems where interrupt handlers require wait-free guarantees when writing to message queues. We present an algorithm which elegantly and practically solves this problem on small processors that are often found in embedded systems. The algorithm does not require special CPU instructions (such as atomic CAS), and therefore is more robust than many existing methods that suffer the ABA problem associated with swing pointers. The algorithm gives "first-in, almost first-out" guarantees under pathological interrupt conditions, which manifests as arbitrary "shoving" among nearly-simultaneous arrivals at the end of the queue.

Keywords

Cite

@article{arxiv.0709.4558,
  title  = {Practical Multiwriter Lock-Free Queues for "Hard Real-Time" Systems without CAS},
  author = {Jeremy Lee},
  journal= {arXiv preprint arXiv:0709.4558},
  year   = {2007}
}

Comments

9 Pages, Preprint

R2 v1 2026-06-21T09:23:23.169Z