A queue is a first-in, first-out (FIFO) data structure where elements are added at the rear and removed from the front. Real-world examples of queues include lines at ticket windows and luggage check machines where the first person/luggage in is served first. In computing, queues are useful for tasks waiting to access resources like printers or for scheduling jobs on a CPU. Common queue operations are enqueue to add an element to the rear and dequeue to remove an element from the front.