Queuing Theory: RK Jana
Queuing Theory: RK Jana
RK Jana
1
Outline
• Elements of a queuing system
• Operating characteristics of a queuing system
• Steady and transient states of a queuing system
• Distribution of arrivals and service times
• Queue discipline
• Single channel waiting line model with Poisson arrivals and
Exponential service times
• Multiple channel waiting line model with Poisson Arrivals
and Exponential service times
• Software for analysis of queuing systems
2
Elements of a Queuing System
Some Examples:
Persons waiting at doctor’s clinic
Persons waiting at railway booking office
Machines waiting to be repaired
Ships waiting in the harbor to be unloaded
Airplanes take off, landing
Customers may be: persons, machines, vehicles, parts etc 3
Continued…
Customers
Arrival behavior
One by one
Batch
Fixed size
Variable size
Queue size
Finite
Infinite
Queue discipline
First come, first served (FCFS)
Priority queue
Preemptive
non-preemptive
6
Service Mechanism
7
Number of Service Channels
Single channel
Parallel channels (provides identical service)
Series (customers go through a number of services, public
offices, manufacturing process)
8
Capacity of the System
9
Applications of Queuing Theory
Telecommunications
Traffic control
Determining the sequence of computer operations
Predicting computer performance
Health services (eg. control of hospital bed
assignments)
Airport traffic, airline ticket sales
Layout of manufacturing systems
10
QT in Performance Measurement
11
Questions in Queuing Systems
12
Notations
13
Notations: Continued…
15
The Arrival Theorem
t
e ( t )
n
Pn (t ) , n 0,1, 2, L
n!
16
The Role of Exponential
Distribution
18
Small Service Time
Prob S < t
1.0
0.632
t
10 20 30 40
This graph shows the probability that the service time S is less
than or equal to t if the mean service time is 10.
19
Continued…
The graph showed that more than 63% of the service times
were smaller than the average service time (10).
20
Relation with Poisson Distribution
21
Distribution of Inter-arrival Time
e t , 0 t
f (t )
0 , elsewhere
22
The Mean Arrival Time
E (T ) tf (t ) dt
t 0
t 0
te t dt
1
23
Distribution of Service Time
n (t ) P(n-service in time T )
t
e (t )
n
, n 0,1, 2,L
n!
24
The Traffic Intensity
For Poisson arrival and departure with one server, the traffic
intensity (ρ) is given by:
25
Queuing Models
P0 1 1 , 1
n
Pn 1 (1 ), 1, n 0
n
27
Characteristics of the Model
E (n) nPn n(1 ) (1 ) n
n n 1
n 0 n0 n 0
d d
(1 ) ( ) (1 )
n
n
n 0 d d n 0
d 1 (1 )
(1 )
d (1 ) (1 ) 2
1
28
Continued…
E (q) (n 1) Pn nPn Pn
n 1 n 1 n 1
nPn Pn P0 {1 (1 )}
n0 n 0 1
2 2
, since Pn (1 ) n 1
1 ( ) n0 n 0
29
Continued…
P(Queue size N ) Pn (1 ) n
n N n N
(1 ) N
n N
n N
(1 ) N
, where r n N
r
r 0
N
1
(1 ) N
N
(1 )
30
Continued…
1 1
E ( w2 ) E ( w1 ) service time of one customer
(1 )
31