Professional Documents
Culture Documents
Q PDF
Q PDF
Queuing Theory
• Queuing theory is the mathematics of
waiting lines.
Tq
1
Queuing Theory
a=1/λ
Exponential Distribution
(λt ) k −λt
0.5
0.4
0.3
Pk (t ) = e
0.2
0.1 k!
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
2
Queuing Theory
X1 = X
3
Queuing Theory
ρ = λ*s
customer spends in the system.
Q = λ * Tq
• This is also true for just the queue.
It is important that the units of both the arrival rate W = λ * Tw
and the service time be identical. It may be
necessary to convert these values to common units.
4
Queuing Theory
20 Solution Process
1. Determine what quantities you need to
18
16
14
know.
12 2. Identify the server
3. Identify the queued items
Tq
10
6
4. Identify the queuing model
4
5. Determine the service time
2
0
6. Determine the arrival rate
7. Calculate ρ
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Utilization
Example Solution
• Determine what quantities you need to know.
• Consider a disk drive that can complete an – The average request time is Tq
average request in 10 ms. The time to – The number of queued jobs is W
complete a request is exponentially • Identify the server
distributed. Over a period of 30 minutes, – The disk drive is the server
117,000 requests were made to the disk.
• Identify the queued items
How long did it take to complete the
– Disk requests
average request?
What is the average number of queued • Identify the queuing model
requests? – M/M/1
5
Queuing Theory
6
Queuing Theory
7
Queuing Theory
ρ = λs / N ∑
N −1 ( λs ) i
i!
K= i =0
∑
N ( λs ) i
This is the average utilization for all N
servers. i = 0 i!
note: ρ = λs / N
8
Queuing Theory
9
Queuing Theory
10
Queuing Theory
Reusing a Server
• Consider a file server. Requests use the
network to get to the server, then use the
disk, then the network again to get back.
• The load on the network is doubled.
λ
λ Net Disk λ
2λ
λ
11