Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Nonblocking algorithm for shared queues using compare-and-swap

Journal Article · · IEEE Transactions on Computers (Institute of Electrical and Electronics Engineers); (United States)
DOI:https://doi.org/10.1109/12.280802· OSTI ID:6697614
;  [1]
  1. Florida Univ., Gainesville, FL (United States)

Nonblocking algorithms for concurrent objects guarantee that an object is always accessible, in contrast to blocking algorithms in which a slow or halted process can render part or all of the data structure inaccessible to other processes. A number of algorithms have been proposed for shared FIFO queues, but nonblocking implementations are few and either limit the concurrency or provide inefficient solutions. We present a simple and efficient nonblocking shared FIFO queue algorithm with O(n) system latency, no additional memory requirements, and enqueuing and dequeuing times independent of the size of the queue. We use the compare- -swap operation as the basic synchronization primitive. We model our algorithm analytically and with a simulation, and compare its performance with that of a blocking FIFO queue. We find that the nonblocking queue has better performance if processors are occasionally slow, but worse performance if some processors are always slower than others. 17 refs.

OSTI ID:
6697614
Journal Information:
IEEE Transactions on Computers (Institute of Electrical and Electronics Engineers); (United States), Journal Name: IEEE Transactions on Computers (Institute of Electrical and Electronics Engineers); (United States) Vol. 43:5; ISSN ITCOB4; ISSN 0018-9340
Country of Publication:
United States
Language:
English

Similar Records

Concurrent operations on priority queues
Journal Article · Sat Dec 31 23:00:00 EST 1988 · Commun. ACM; (United States) · OSTI ID:5871864

Circular queue management with split indexes
Patent · Tue Jul 04 00:00:00 EDT 2023 · OSTI ID:2221951

A Memory Efficient Lock-Free Circular Queue
Conference · Sat May 01 00:00:00 EDT 2021 · OSTI ID:1783005