Circular buffer (ring queue)
A queue in a fixed ring of slots: head and tail chase each other round, and nothing ever moves.
Operations1, 2, 3, 4, dequeue, dequeue, 5, 6, 7, 8
An empty ring of 6 slots.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub