Class Note-CSE605A-MODEL-3-Queue Models
Class Note-CSE605A-MODEL-3-Queue Models
Queuing are the most frequently encountered problems in everyday life. For example, queue
at a cafeteria, library, bank, etc. Common to all of these cases are the arrivals of objects
requiring service and the attendant delays when the service mechanism is busy. Waiting lines
cannot be eliminated completely, but suitable techniques can be used to reduce the waiting
time of an object in the system. A long waiting line may result in loss of customers to an
organization. Waiting time can be reduced by providing additional service facilities, but it may
result in an increase in the idle time of the service mechanism.
Basic Te rminology
Queuing Mode l
It is a suitable model used to represent a service oriented prob lem, where customers arrive
randomly to receive some service, the service time being also a random variable.
Arrival
The statistical pattern of the arrival can be indicated through the probability distribution of the
number of the arrivals in an interval.
Service Time
Server
Queue Discipline
It is the order in w hich the members of the queue are offered service. i.e, It is the rule
accordingly to which customers are selected for service when queue has been formed. The
most common disciplines are
Poisson Process
A group of items waiting to receive service, including those re ceiving the service, is known as
queue.
D.J Page 1
It is the total time spent by a customer in the system. It can be calculated as follows: Waiting
time in the system = Waiting time in queue + Service time
Bulk Arrivals
If more than one customer enters the system at an arrival event, it is known as bulk arrivals.
Note that bulk arrivals are not embodied in the models of the subsequent sections .
Queuing System
(a / b/ c): (d / e)
1. a =Arrival Distribution
2. b =
3. c =
4. d =
D.J Page 2
Operating characteristic of a Que uing System
1. Business situations (depart mental stores, cinema halls, petrol pumps, patients clinic,
airlines counters etc.)
2. Scheduling of jobs in production control.
3. Solution of inventory control.
This is a queuing model in which the arrival is Marcovian and departure distribution is also
Marcovian, number of server is one and size of the queue is also Marcovian, no. of server is
one and size of the queue is infinite and service discipline is 1s t come 1s t serve (FCFS) and the
calling source is also finite .
Let pn (t+∆t)be the probability of n customers in the system at the time t +∆t
For n>0
D.J Page 3
1 n 0 0 n
2 n+1 0 1 n
3 n-1 1 0 n
4 n 1 1 n
or, p n (t dt ) p n (t ) p n (t )( dt dt ) p n 1 (t )( dt ) p n 1 (t )( dt ) o(dt )
p n (t dt ) p n (t ) o(dt )
or, ( ) pn p n 1 (t ) p n 1 (t )
dt dt
d
p n (t ) ( ) pn p n 1 (t ) p n 1 (t ) …………………….(1)
dt
For n=0
Or, p0 (t dt ) p0 (t ) p0 (t )( dt ) p1 (t )( dt ) o(dt )
p 0 (t dt ) p 0 (t ) o(dt )
Or, p0 p1 (t ) ……………………………….(2)
dt dt
d
p0 (t ) p0 p1 (t ) , when n=0.
dt
d
p ' n (t ) p n (t ) 0
dt
( ) pn pn 1 pn 1 0 , where n>0
p0 p1 0 , where n=0.
D.J Page 4
2
p2 p0
3
p3 p0
……………………..
pn p0 , where n>0
p0 1 , Hence pn 1
Characteristics
n
1. Expected Length of Queue ( Lq ) (n 1) p n
i 1
n n
n pn pn
i 1 i 1
LS (1 p0 )
LS [1 (1 )] LS
n
2. Expected Length of System: ( LS ) n pn
i 1
n
n
n p0
i 1
n
n
n1
i 1
n
n 1
1 n
i 1
2
1 1 2 3 ......
1
Therefore, LS
D.J Page 5
LS 1
3. Waiting time in System: (WS )
Working Formulae
Example 1: A Television repairman finds that the time spent on his jobs has an exponential
distribution with mean 30 minuets. If he repairs the sets in the order in which they come in,
and if the arrivals of sets are approximately Poisson with an average rate of 10 per 8 hours
day which is the repairs man idle time each day ?Find the expected number of units in the
system and in the queue ?
Therefore = /µ=10/8.2=5/8
5
1. Expected number of units in the system LS sets
1 3
2
2 5
2. Expected number of units in the queue ( Lq ) = ( Lq )
8 =
(1 ) (1 5 )
8
3. Probability of repairman being idle =probability of having no T.V sets in the system
5 3
( p0 ) 1 =1 =
8 8
3
4. Therefore repairman will remain idle for 8 3 hours per day.
8
Exercises
1. What do you understand by a queue? Give some important applications of queuing theory.
D.J Page 6
2. A barber w ith a one- man shop takes exactly 30 minutes to complete one haircut. If
customers arrive according to a Poisson process at a rate of one every 40 minutes, how long
on the average must a customer wait for service?
5. A two channel waiting line with Poisson arrival has a mean arrival rate of 50 per hour and
exponential service with a mean service rate of 75 per hour for each channel. Find
D.J Page 7