Concept Flow - Why Queue Exists and What Problems It Solves
Start: Need to manage tasks in order
Use simple list/array?
No
Problem: Adding/removing at ends inefficient or unordered
Use Queue: FIFO structure
Enqueue: Add task at rear
Dequeue: Remove task from front
Tasks processed in order received
Problem solved: Fair, ordered processing
Shows why queues are used to keep tasks in order and solve inefficiencies of simple lists.
