-
Enqueue : Adds an item to the queue. If the queue is full, then it is said to be an Overflow condition.
-
Deque : It removes an item from the queue. The items are popped in the same order in which they are pushed. If the queue is empty, then it is said to be an Underflow condition
-
Front : It gives the front item from the queue.
-
Rear : It gives the last item from the queue.
-
Circular Queue
-
Priority Queue
-
Difference between queue.queue vs collections.deque in Python - Geeks for Geeks
- When data is transferred asynchronously between two processes.The queue is used for synchronization. For example: IO Buffers, pipes, file IO, etc
- Call Center phone systems use Queues to hold people calling them in order.