Queue

A first-in, first-out line: items join at the back and leave from the front. Breadth-first search and fair scheduling both need this order rather than a stack's.

Back to the glossary