Queuing Theory: The Mathematical Study of Waiting in Line (2024)

Science, Tech, Math ›Math

The mathematical study of waiting in line

Queuing Theory: The Mathematical Study of Waiting in Line (1)

Math

  • Statistics
    • Applications Of Statistics
    • Statistics Tutorials
    • Formulas
    • Descriptive Statistics
    • Inferential Statistics
  • Math Tutorials
  • Geometry
  • Arithmetic
  • Exponential Decay
  • Worksheets By Grade
  • Resources

By

Alane Lim

Alane Lim

Science Expert

  • Ph.D., Materials Science and Engineering, Northwestern University
  • B.A., Chemistry, Johns Hopkins University
  • B.A., Cognitive Science, Johns Hopkins University

Alane Lim holds a Ph.D. in materials science and engineering. She has published numerous peer-reviewed journal articles on nanotechnology and materials science.

Learn about ourEditorial Process

Updated on July 09, 2018

Queuing theory is the mathematical study of queuing, or waiting in lines. Queues contain customers (or “items”) such as people, objects, or information. Queuesform when there are limited resources for providing a service. For example, if there are 5 cash registers in a grocery store, queues will form if more than 5 customers wish to pay for their items at the same time.

A basic queuing system consists of an arrival process (how customers arrive at the queue, how many customers are present in total), the queue itself, the service process for attending to those customers, and departures from the system.

Mathematical queuing models are often used in software and business to determine the best way of using limited resources. Queueing models can answer questions such as: What is the probability that a customer will wait 10 minutes in line? What is the average waiting time per customer?

The following situations are examples of how queueing theory can be applied:

  • Waiting in line at a bank or a store
  • Waiting for a customer service representative to answer a call after the call has been placed on hold
  • Waiting for a train to come
  • Waiting for a computer to perform a task or respond
  • Waiting for an automated car wash to clean a line of cars

Characterizing a Queuing System

Read MoreUnlocking Set Theory: Mathematics' FoundationBy Courtney Taylor

Queuing modelsanalyze how customers (including people, objects, and information) receive a service. A queuing system contains:

  • Arrival process. The arrival process is simply how customers arrive. They may come into a queue alone or in groups, and they may arrive at certain intervals or randomly.
  • Behavior. Howdo customers behave when they are in line? Some might be willing to wait for their place in the queue; others may become impatient and leave. Yet others might decide to rejoin the queue later, such as when they are put on hold with customer service and decide to call back in hopes of receiving faster service.
  • How customers are serviced. This includes the length of time a customer is serviced, the number of servers available to help the customers, whether customers are served one by one or in batches, and the order in which customers are serviced, also called service discipline.
  • Service discipline refers to the rule by which the next customer is selected. Although many retail scenariosemploy the “first come, first served” rule, other situations may call for other types of service. For example, customers may be served in order of priority, or based on the number of items they need serviced (such as in an express lane in a grocery store). Sometimes, thelast customer to arrive will be served first (such s in the case in a stack of dirty dishes, where the one on top will be the first to be washed).
  • Waiting room. The number of customers allowed to wait in the queue may be limited based on the space available.

Mathematics of Queuing Theory

Kendall’s notation is a shorthand notation that specifies the parameters of a basic queuing model. Kendall’s notation is written in the form A/S/c/B/N/D, where each of the letters stand for different parameters.

  • The A term describes when customers arrive at the queue – in particular, the time between arrivals, or interarrival times. Mathematically, this parameter specifies the probability distribution that the interarrival times follow. One common probability distribution used for the A term is the Poisson distribution.
  • The S term describes how long it takes for a customer to be serviced after it leaves the queue. Mathematically, this parameter specifies the probability distribution that these service times follow. The Poisson distribution is also commonly used for the S term.
  • The c term specifies the number of servers in the queuing system. The model assumes that all servers in the system are identical, so they can all be described by the S term above.
  • The B term specifies the total number of items that can be in the system, and includes items that are still in the queue and those that are being serviced. Though many systems in the real world have a limited capacity, the model is easier to analyze if this capacity is considered infinite. Consequently, if the capacity of a system is large enough, the system is commonly assumed to be infinite.
  • The N term specifies the total number of potential customers – i.e., the number of customers that could ever enter the queueing system – which may be considered finite or infinite.
  • The D term specifies the service discipline of the queuing system, such as first-come-first-served or last-in-first-out.

Little’s law, which was first proven by mathematician John Little, states that the average number of items in a queue can be calculated by multiplying the average rate at which the items arrive in the system by the average amount of time they spend in it.

  • In mathematical notation, the Little's law is: L = λW
  • L is the average number of items, λ is the average arrival rate of the items in the queuing system, and W is the average amount of time the items spend in the queuing system.
  • Little’s law assumes that the system is in a “steady state” – the mathematical variables characterizing the system do not change over time.

Although Little’s law only needs three inputs, it is quite general and can be applied to many queuing systems, regardless of the types of items in the queue or the way items are processed in the queue. Little’s law can be useful in analyzing how a queue has performed over some time, or to quickly gauge how a queue is currently performing.

For example: a shoebox company wants to figure out the average number of shoeboxes that are stored in a warehouse. The company knows that the average arrival rate of the boxes into the warehouse is 1,000 shoeboxes/year, and that the average time they spend in the warehouse is about 3 months, or ¼ of a year. Thus, the average number of shoeboxes in the warehouse is given by (1000 shoeboxes/year) x (¼ year), or 250 shoeboxes.

Key Takeaways

  • Queuing theory is the mathematical study of queuing, or waiting in lines.
  • Queues contain “customers” such as people, objects, or information. Queues form when there are limited resources for providing a service.
  • Queuing theory can be applied to situations ranging fromwaiting in line at the grocery store to waiting for a computer to perform a task. It is often used in software and business applications to determine the best way of using limited resources.
  • Kendall’s notation can be used to specify the parameters of a queuing system.
  • Little’s law is a simple but general expression that can provide a quick estimate of the average number of items in a queue.

Sources

Format

mlaapachicago

Your Citation

Lim, Alane. "An Introduction to Queuing Theory." ThoughtCo, Aug. 27, 2020, thoughtco.com/queuing-theory-4171870.Lim, Alane. (2020, August 27). An Introduction to Queuing Theory. Retrieved from https://www.thoughtco.com/queuing-theory-4171870Lim, Alane. "An Introduction to Queuing Theory." ThoughtCo. https://www.thoughtco.com/queuing-theory-4171870 (accessed June 21, 2024).

Queuing Theory: The Mathematical Study of Waiting in Line (2024)

FAQs

Queuing Theory: The Mathematical Study of Waiting in Line? ›

The definition of queuing theory

Is the queuing theory the mathematics of waiting lines? ›

Queuing theory is a branch of mathematics that studies and models the act of waiting in lines. This paper will take a brief look into the formulation of queuing theory along with examples of the models and applications of their use.

What is the mathematical queuing theory? ›

Queuing theory is a mathematical discipline that helps us understand the behaviour of queues and make predictions about their performance. It considers various factors such as arrival rates, service times, and queue lengths to analyse and optimise queuing systems.

What is the queuing theory of waiting time? ›

Queuing theory examines every component of waiting in line, including the arrival process and the number of customers among others, which might be people, data packets, cars, or anything else. Real-life applications of queuing theory cover a wide range of businesses.

In which country did the study of waiting lines queueing theory originate? ›

Queueing Theory's Origins: 1900 to 1917

The origins of modern queueing analysis lie in the growth of telephone systems in Denmark and Norway during the early 20th century.

Is queuing theory difficult? ›

Queueing theory is an effective tool for studying several performance parameters of computer systems. It is a difficult subject, and the best way to comprehend queueing theory is by working on information processing problems.

What is the queuing theory paradox? ›

Queuing paradoxes are situations where common sense or intuition fails to match the actual behavior of a queuing system. They can lead to inefficient or unfair outcomes, such as longer waiting times, higher costs, or lower service quality.

Why does the waiting line exist? ›

Queuing exists because there is an imbalance between the supply and demand side of services. If consumers could get whatever they wanted whenever they wanted it, queues would not be needed.

What is the basic principle of queuing theory? ›

First in, first out. First in first out (FIFO) queue example Also called first-come, first-served (FCFS), this principle states that customers are served one at a time and that the customer that has been waiting the longest is served first.

How is queuing theory used in real life? ›

Queuing theory has many applications in various fields and industries, such as health care, manufacturing, transportation, telecommunications, and service. In health care, queuing theory can help design and manage the capacity and flow of patients, staff, and resources in hospitals, clinics, or pharmacies.

Why do some cultures not wait in line? ›

In some cultures, waiting is considered an inconvenience, while in others, it adds value to the product, signifying its worth. People in certain societies expect to jostle for position and attention, while others find solace in orderly and structured lines.

Who is the father of queuing theory? ›

Erlang was an Danish engineer who worked for the Copenhagen Telephone Exchange. Although Erlang was preceded slightly by work of Johannsen (1907), Erlang is still considered the father of mathematical queueing theory.

What is the formula for waiting time in queue? ›

Hence, Wq can be obtained as follows: Wq = Lq/λ. denotes the waiting time in the queue for the A/B/c queue.

What is the mathematical study of waiting in lines called? ›

Queuing theory is the mathematical study of the formation and function of waiting lines. Queuing theory assesses the arrival process, service process, customer flow and other components of the waiting experience.

Is waiting line theory another term for queuing theory? ›

Queuing theory refers to the mathematical study of the formation, function, and congestion of waiting lines, or queues. It's also referred to as queueing theory, queue theory, and waiting line theory.

What is waiting lines and queuing system? ›

A waiting line system, also known as a queuing system, is exactly what it sounds like. It's when a person or object spends time waiting in a line for an activity or transaction to happen.

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Frankie Dare

Last Updated:

Views: 6571

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.