What is a Queuing System? A flow of customers from a finite or infinite population towards your service facility forms a queue on account of lack of capability to serve them all at the same time. To manage this, you must have a queue system that consists of customers arriving for service, waiting for service if it is not immediate, and leaving the system after being served.
There is a complete explanation of queuing theory below, along with the characteristics, math and formulas that you need to calculate these factors. But if you simply want to calculate the average waiting time your customers are facing, make use of this M/M/1 queuing theory calculator below.
Elements of Queuing System
The pattern in which customers arrive in the system.
The size of the input service is either finite or infinite.
The pattern in which the customers arrive at the service system or inter-arrival time. The most common stochastic models use Poisson distribution for arrival rate and/or exponential distribution for inter-arrival times.
Customers may wait in the queue regardless of its length, or they may leave upon observing the queue's length.
Queue Discipline
- FIFO – First In First Out
- FCFS – First Come First Served
- LIFO – Last In First Out
Service Mechanism
- Single queue and one server
- Single queue and several servers
- Several queues and one server
- Several servers
Capacity of the Queuing System
A finite source limits the customers arriving for service, while an infinite source is forever abundant and unrestricted.
Operating Characteristics
Expected number of customers in the system
Expected number of customers in the Queue
Expected waiting line in the system
Expected waiting time in the queue
Service Utilisation Factor (P = λ/µ)
The proportion of time that a server actually spends with a customer where λ is the average number of customers arriving per unit of time and µ is the average number of customers completing service per unit time.
Probability Distributions
Models counting only arrivals are "pure birth" models. Queuing theory typically involves "birth-death" processes, as new customers increase arrivals while service completions decrease the count via departures.
Distribution of Arrivals
Let Pn(t) be the probability of n arrivals in a time interval of length t (n ≥ 0). Assuming a Poisson process with mean λt:
Distribution of Inter-arrival Times
If the arrival process follows a Poisson distribution, the time between successive arrivals follows an exponential distribution:
Distribution of Departures
For N customers at t=0, with departures at rate µ, the probability Pn(t) of n customers remaining is the Truncated Poisson distribution:
Distribution of Service Times
The probability for completing the service of n customers in time t follows the exponential distribution:
Classification of Queuing Models
Models are typically described as (a / b / c) : (d / e)
Inter-arrival time distribution
Inter-service time distribution
Number of servers
System capacity
Queue discipline
Model 1: (M/M/1) : (∞/FIFO)
This model features a single server channel, Poisson input, exponential service, infinite capacity, and First-In-First-Out discipline.