Queuing Theory AJ
Queuing Theory AJ
Queuing Theory AJ
QUEUING
FORMULA
Little’s Queuing
Formula
= average number of arrivals entering the system per unit
time
L = average number of customers present in the queuing
system
Lq = average number of customers waiting in line
Ls = average number of customers in service
W = average time a customer spends in the system
Wq = average time a customer spends in line
Ws = average time a customer spends in service
Little’s Queuing
ForFormula
any queuing system in which a steady-state
distribution exists, the following relations hold:
●L=W
● Lq =
● Ls =
Example: if = 46 clients arrive at a restaurant every hour,
on average, and if they spend W = 10 minutes before being
served, on average, then there will be L = 46×1/6 ≈ 7.7
clients waiting to be served at all times, on average.
THE M/M/1
QUEUING
SYSTEM
The M/M/1 Queuing
AnSystem
M/M/1 system has exponential interarrival times
with rate , exponential service times with rate µ, and
one server.
Let = / be the traffic intensity of the queuing
system.
Assuming ≤ 1, the probability of exactly customers in
the system is
(1 − ), = 0,1,2, …
The probability of exactly no customers in the system
is thus (1 − )
The M/M/1 Queuing
Average number in service:
System
Average number waiting in line:
Average number waiting in the system:
Average waiting time in service:
Average waiting time in the line:
Average waiting time in the system:
The M/M/1 Queuing
System
Intuitively, if ≥ 1, then it must be that ≥ , and if the
arrival rate is greater than the service rate, then the
state of the system will grow without end.
Notice that (as expected) as approaches 1, both W
and become very large.
For near zero, approaches zero, but for small , W
approaches 1/, the mean service time.
STATION
SINGLE-PUMP GAS
Suppose that all car
owners fill up when
their tanks are exactly
half full. At the
present time, an
average of 7.5
customers per hour
arrive at a single-
pump gas station. It
takes an average of 4
minutes to service a
car. Assume that inter-
arrival times and
service times are both
Single-Pump Gas Station
ByExample
assumption the single-pump gas station is a M/M/1 queueing
system with = 7.5 arrivals per hour and the capacity to serve =
60⁄4 = 15 vehicles per hour.
Then the
● traffic intensity is = 0.5;
● average number of customers waiting in this system is = 1;
● average waiting time in the system W = mins.
Suppose now that all
STATION
SINGLE-PUMP GAS car owners purchase
gas when their tanks
are exactly three-
quarters full due to a
gas shortage and
panic buying takes
place. Assume that the
average service time
has been reduced to 3
$ 1 minutes. How has
panic buying affected
and W?
Single-Pump Gas Station
these new assumptions, we have 𝜆 = 2(7.5)= 15 arrivals
Example
per hour and the capacity to serve 𝜇 = 18 cars per hour.
With
Then the
traffic intensity is 𝜌 =
average number of customers waiting in this system is 𝐿
= = 5;
average waiting time in the system 𝑊 = = 0.33hour =
20mins.
Thus, panic buying has caused longer lines.
M/M/1 With Limited
In real cases, queues never become infinite, but are
Capacity
limited due to space, time or service operating policy.
Examples: parking of vehicles in a supermarket is
restricted to the spaces in the parking area; limited
seating arrangement in a restaurant.
The probability of exactly no customers in such a
system is