Queuing Theory: Prepared By: El Jireh Bibangco
Queuing Theory: Prepared By: El Jireh Bibangco
BIBANGCO
Queuing Theory
Prepared by: El Jireh Bibangco
INSTRUCTOR: EL JIREH P. BIBANGCO
Learning Objectives
Queue: Defined!
Queue – represents waiting line; insertions are
made at the back (tail) of a queue and deletions
are made at the front (head).
Queuing System - a model using the principles of a
queue; it includes the server, the unit being served,
and units in the queue (waiting line).
SERVER POPULATION
WAITING LINE
INSTRUCTOR: EL JIREH P. BIBANGCO
Terms
State – number of units in the system and the
status of the server
Event – set of circumstances that cause an
instantaneous chance in the state of the system
Customer – anything that arrives at the facility and
required service
Server – any resource which provides the
requested service.
INSTRUCTOR: EL JIREH P. BIBANGCO
QUEUE
SERVICE
FACILITY
Single-Channel, Single-Phase System
INSTRUCTOR: EL JIREH P. BIBANGCO
QUEUE
TYPE 1 TYPE 2
SERVICE SERVICE
FACILITY FACILITY
TYPE 2
SERVICE
FACILITY
TYPE 3
Multi-Channel, SERVICE
FACILITY
Single-Phase System
INSTRUCTOR: EL JIREH P. BIBANGCO
TYPE 1 TYPE 2
SERVICE SERVICE
Multi-Channel, FACILITY 2 FACILITY 2
Multi-Phase System
INSTRUCTOR: EL JIREH P. BIBANGCO
Characteristics
Calling Population – the population of potential
customers; may be assumed to be finite or infinite.
Nature of Arrivals – one at a time in random;
Service Mechanism – functionality; operation
System Capacity – limited or unlimited
Queuing Discipline – FIFO or priority scheduling
INSTRUCTOR: EL JIREH P. BIBANGCO
Unit-entering-system
Arrival Event
No Yes
Unit Enters Queue
Unit Enters Service Server Busy? for Service
INSTRUCTOR: EL JIREH P. BIBANGCO
Service-just-completed
Departure Event
No Yes
Begin Server Another Unit Remove the Waiting
Idle Time Waiting? Unit from Queue
Begin Servicing
the Unit
INSTRUCTOR: EL JIREH P. BIBANGCO
Queue Status
Not Empty Empty
Server Busy Enter Queue Enter Queue
Status
Idle Impossible Enter service
INSTRUCTOR: EL JIREH P. BIBANGCO
Queue Status
Not Empty Empty
Server Busy Enter Queue Impossible
Outcomes
Idle Impossible Enter service
INSTRUCTOR: EL JIREH P. BIBANGCO
Elements of time …
INTERARRIVAL & CLOCK TIME SERVICE TIME
C IT AT C ST
1 - 0 1 2
2 2 2 2 1
3 4 6 3 3
4 1 7 4 2
5 2 9 5 1
6 6 15 6 4
INSTRUCTOR: EL JIREH P. BIBANGCO
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
INSTRUCTOR: EL JIREH P. BIBANGCO
Case #1 (continued)
Complete the time TA Prob Prob RDA
between arrivals 1 0.125 0.125 001 - 125
table, the cumulative
probability and 2 0.125 0.250 126 - 250
6 0.125 0.750
626 - 750
Case #1 (continued)
Complete the service ST Prob Prob RDA
time table by 1 0.10 0.10 01 – 10
computing the
cumulative 2 0.20 0.30 11 - 30
6 0.05 1.00 96 - 00
INSTRUCTOR: EL JIREH P. BIBANGCO
Sample RDA …
INTERARRIVAL & CLOCK TIME SERVICE TIME
C RDA IT C RDA ST
1 - - 1 84 4
2 913 8 2 10 1
3 727 6 3 74 4
4 015 1 4 53 3
… … … … … …
n 999 t n 99 t
INSTRUCTOR: EL JIREH P. BIBANGCO
Probability (Wait)
C TBA AT ST TSB WT TSE TSS IT
1 - 0 4 0 0 4 4 0 P(W) = ΣC(W)/ΣC
2 8 8 1 8 0 9 1 4
3 6 14 4 14 0 18 4 5 Given: ΣC(W) = 3
4 1 15 3 18 3 21 6 0 ΣC = 10
5 8 23 2 23 0 25 2 2
6 3 26 4 26 0 30 4 1 P(W) = ΣC(W)/ΣC
7 8 34 5 34 0 39 5 4 = 3/10
8 7 41 4 41 0 45 4 2 = 0.3 or 30%
9 2 43 5 45 2 50 7 0
10 3 46 3 50 4 53 7 0
INSTRUCTOR: EL JIREH P. BIBANGCO
Case #2 (continued)
Complete the TA Prob Prob RDA
time between
arrival table by 1 0.25 0.25 01 – 25
Case #2 (continued)
Service ST Prob Prob RDA
Distribution
2 0.30 0.30 01 – 30
of Able
3 0.28 0.58 31 - 58
4 0.25 0.83 59 - 83
5 0.17 1.00 84 - 00
INSTRUCTOR: EL JIREH P. BIBANGCO
Case #2 (continued)
Service ST Prob Prob RDA
Distribution
3 0.35 0.35 01 – 35
of Baker
4 0.25 0.60 36 - 60
5 0.20 0.80 61 - 80
6 0.20 1.00 81 - 00
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 21
3 98 51
4 90 92
5 26 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 21
3 98 4 51
4 90 4 92
5 26 2 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 2 21
3 98 4 6 51
4 90 4 10 92
5 26 2 12 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 2 21
3 98 4 6 51
4 90 4 10 92
5 26 2 12 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 2 21 2 3 5 0
3 98 4 6 51
4 90 4 10 92
5 26 2 12 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 2 21 2 3 5 0
3 98 4 6 51 6 3 9 0
4 90 4 10 92
5 26 2 12 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 2 21 2 3 5 0
3 98 4 6 51 6 3 9 0
4 90 4 10 92 10 5 15 0
5 26 2 12 89
INSTRUCTOR: EL JIREH P. BIBANGCO
2 26 2 2 21 2 3 5 0
3 98 4 6 51 6 3 9 0
4 90 4 10 92 10 5 15 0
5 26 2 12 89 12 6 18 0
INSTRUCTOR: EL JIREH P. BIBANGCO
D’TOUR >>
ABLE BAKER
C RDA TBA AT RDA TSB ST TSE TSB ST TSE WT
(TBA) (ST)
6 42 2 14 38 15 3 18 1
7 74 3 17 13 18 2 20 1
8 80 3 20 61 20 4 24 0
9 68 3 23 50 23 4 27 0
10 22 1 24 49 24 3 27 0
11 48 2 26 39 27 3 30 1
12 34 2 28 53 28 4 32 0
13 45 2 30 88 30 5 35 0
14 24 1 31 01 32 3 35 1
15 34 2 33 81 35 4 39 2
INSTRUCTOR: EL JIREH P. BIBANGCO
END
Thank You