Queuing theory studies the mathematical principles of queuing systems, where customers wait for service resources. It involves various queue configurations such as single and multiple queues, and factors such as arrival rates and service times can be analyzed to improve efficiency. A comparative study in a supermarket suggests that a single queue with multiple servers can significantly reduce waiting times and costs compared to multiple queues.