KnowledgeBoat Logo

Computer Science

How does FIFO describe queue ?

Python Queue

2 Likes

Answer

FIFO, First In First Out, defines a queue because in a queue, elements are retrieved from one end (called the front end) and inserted at another end (rear end). Thus, at any time, in a queue, retrieval gets the oldest element, while always adding to the rear of the queue. Thus, items are processed in first-in, first-out (FIFO) order.

Answered By

1 Like


Related Questions