Download presentation
Presentation is loading. Please wait.
1
Queueing theory Birth-death Analysis
M/M/1 queues (intro to M/M/c)
2
Birth Death Processes Consider The M/M/1 queue
State 0 β the queue and server is empty State 1 β the server is in use and the queue is empty State 2 β the server is in use and 1 is in the queue State 3 β the server is in use and 2 in the queue n 1 2 3 π π
3
Thoughts on Birth death processes
The rate of moving from state 2 into state 3 should be the same as the rate from moving from state 3 into state 2. Over the course of a day if the queuing system moved from state 2 to /day then the rate that the system goes from state 3 to state 2 must also be 5000/day(or maybe 4999/day). The probability of being in one state i is π π . The probability of being in state i and going to state i+1 is equal to the probability of doing from state i+1 and going to state i. π π+1 (ππππ‘β π+1 )= π π (ππππ‘β π )
4
Birth-Death for M/M/1 queues continued
π 0 =1βπ=1β π π ππ 0 = ππ 1 ο¨ π 1 = π π π 0 π π+1 = π π π π πππ πππ π π π = π π π π 0 π=0 β π π =1 ο¨ π=1 β π π π π 0 =1
5
Mathematical Summation
Recall from Calculus II π=0 β π₯ π = 1 1βπ₯ πππ 0<π₯<1 When π< π π‘βππ 0< π π =π<1 1= π=0 β π π π π 0 = 1 1βπ π 0
6
Expected Values of a roll of dice
πΈ= π=1 6 π π π = (5) 1 6 +(6) 1 6 = 21 6 =3.5
7
Expected # customers in M/M/1 queue
πΈ= π=0 β π π π = π=0 β π π π π π 0 = π 0 π=0 β π π π π Recall from Calculus II π=0 β ππ₯ πβ1 = 1 1βπ₯ 2 πππ 0<π₯<1 πΈ= π 0 π=0 β π π π πβ1 =(1βπ) π π=0 β π π πβ1 πΈ= (1βπ) π 1βπ 2 = π 1βπ = π π 1β π π
8
Example M/M/1 queue π=2/ sec πππ π=3/π ππ What is the total time in the queueing system? Time in system = time waiting in queue + service time. π π = π π +1/π π π = πΈ # (1/π)+1/π π π = π π 1β π π (1/π)+1/π π π = 2 3 1β (1) 1 3 = =1 second
9
M/M/3 queue birth death analysis
State 0 β system is empty State 1 β 1 server in use, 2 servers idle, queue empty State 2 β 2 servers in use, 1 server idle, queue empty State 3 β 3 servers in use, queue empty State 4 β 3 servers in use, 1 customer in the queue State 5 β 3 servers in use, 2 customer in the queue X
10
Birth death equations for M/M/3
ππ 0 = ππ 1 ππ 1 = 2ππ 2 ππ 2 = 3ππ 3 ππ 3 = 3ππ 4 ππ π = 3ππ π+1 πππ π>3 n 1 2 3 π π 2π 3π
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.