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

A Memory Efficient Lock-Free Circular Queue

Conference ·
OSTI ID:1783005

Hardware queues are import in many applications, such as data transfer, synchronization of concurrent modules with the need of mutual exclusion constructs. State of the art bounded (of a fixed size) lock free circular queues are implemented either by read/write atomic operations, or barrier conditions, or by separating dequeue and enqueue operations. However, these queues always require an unused element at all the times to safe-guard the front and rear pointers of the queue, so as to avoid data race conditions, which leads to the waste of memory. The waste of memory is especially disadvantageous in applications such as I/O data transfer, and image transfer between processing filters, when large element size is needed, We propose a lock-free solution of the bounded circular queue through read/write atomic operations, but without the need of an extra element in the queue. The proposed solution is implemented and verified in both Verilog and ’C’ languages. We also demonstrate its effectiveness by comparing its area and delay metrics with the implementations of other existing designs of queue.

Research Organization:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Organization:
USDOE
DOE Contract Number:
AC05-00OR22725
OSTI ID:
1783005
Country of Publication:
United States
Language:
English

Similar Records

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

Method and apparatus for efficiently tracking queue entries relative to a timestamp
Patent · Tue Jun 17 00:00:00 EDT 2014 · OSTI ID:1134209

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

Related Subjects