Académique Documents
Professionnel Documents
Culture Documents
Systems
Goals:
Queueing Model
Discussion
ARRIVAL RATE
(Poisson process)
Input Queue
SERVICE RATE
M/M/1 queue
The M/M/1 queue assumes that arrivals are a Poisson process and the service time is exponentially
distributed.
Interarrival times of a Poisson process are IID (Independent and Identically Distributed) exponential
random variables with parameter
1
Arrival rate
CPU
Service rate
Appendix: exponential
distribution
A(t ) P{ t} 1 e
cumulative distribution
function (cdf)
d
t
a (t ) A(t ) e
dt
Arrival rate
CPU
Service rate
t
Probability to have the first
arrival within is 1-e-
Queueing Theory
Poisson arrival with constant average arrival rate (customers per unit time)
Each arrival is independent.
Interarrival times are IID (Independent and Identically Distributed) exponential random variables with parameter
What are the odds of seeing the first arrival
before time t?
See http://en.wikipedia.org/wiki/Exponential_distribution
for additional details
P{ t} 1 e t
Analysis of Queue
Behavior
n!
10
Analysis of Queue
Behavior
t
Probability n customers arrive within time interval t is:
n!
t
11
It does not make any assumption about the specific probability distribution followed by the
interarrival times between customers
= arrival rate
Lq = Wq
L=W
In words average number of customers is arrival rate times average waiting time
12
Server Utilization:
L
1
Quiz: how can we derive the average time W in the system, and the
average time Wq in the queue?
13
Hamburger Problem
1.
2.
Av. time hamburger waiting to be eaten? (Do they get cold?) Ans
= ????
Av number of hamburgers waiting in queue to be eaten? Ans
= ????
Queue
14
=2
15
=2
16
=2
=2
Interesting Fact
19
Input Queue
Server
SERVICE RATE
20
ARRIVAL RATE 2
Server
Input Queue
SERVICE RATE
If two or more arrival processes are independent and Poisson with parameter
i, then their sum is also Poisson with parameter equal to the sum of i
= 1+ 2
21
Input Queue
Combined = 1+ 2
Server
SERVICE RATE 2
22
Question: McDonalds
Problem
23