SlideShare a Scribd company logo
1 of 49
Queuing Models
Unit 4
Contents
• Characteristics of queuing systems
• Queuing notation
• Simulation Examples:
• Queuing
• Inventory System
2
Introduction
• Simulation is often used in the analysis of queuing models
• Queueing models whether solved mathematically or analysed
through simulation, provide the analyst a powerful tool for
designing and evaluating the performance of queuing systems.
• Measures of system performance include
• Server utilization (percentage of time a server is busy)
• Length of waiting lines
• Delays of customers
• Simple queueing model is shown below
3
Simple queueing model 4
Simple queueing model
• Customers arrive from time to time and join a queue (waiting line)
• They are eventually served and then finally they leave the system
• Customers refers to any type of entity that can be viewed as
requesting a service from a system
• Eg. : service facilities, production systems, repair and
maintenance facilities, communications and computer systems and
transport and material handling systems
5
Characteristics of queuing system
• The key elements of queuing system are the customers and server
• Customer refers to anything that arrives at a facility and requires
service
• Eg. people, machines, truck, mechanics, patients, pallets, airplanes ,
email, cases , orders , or dirty clothes
• Server refers to anything that provides the requested service.
• Eg. receptionists, repair personnel, mechanics, medical personnel,
automatic storage and retrival machines such as cranes, runways at airport,
automatic packers, order pickers, washing machines, CPU in computers
6
Examples of
queueing
system
7
Characteristics of queuing system
• Calling population
• System capacity
• The Arrival Process
• Queue Behavior and Queue Discipline
• Service Times and the service Mechanism
8
The calling population
• The population of potential customers, is referred as the calling
population which may be finite or infinite
• Consider the following scenario to understand the terms calling
population, customers and server
• Consider the personal computers of the employees of a small
company that are supported by the IT staff of three technicians
• When a computer fails, needs new software etc, it is attended by
one of IT staff.
• Computers are the customers, IT staff is a server and calling
population is finite here, consists of the personal computers at the
company.
9
The calling population
• The systems with large population of potential customers, the
calling population is assumed to be infinite.
• The difference between the finite and infinite calling population is
how the arrival rate is defined.
• In infinite calling population, the arrival rate is not affected by
the number of customers left the calling population and joined the
queuing system
• In finite calling population, the arrival rate to the queueing
system does depend on the number of customers being served and
waiting.
10
The calling population
• The arrival rate defined as the expected number of arrivals in the
next unit of time
• Eg. Consider a hospital with 5 patients assigned to a single nurse.
• When all the patients are resting , the nurse is idle hence the
arrival rate is maximum since any of the patients can call nurse
for assistance next instant
• When all the 5 patients have called the nurse then arrival rate is
zero i.e. no arrival is possible until the nurse finishes with a
patient.
11
System Capacity
• The limit to the number of customers that may be in the waiting
line or system
• Eg. Automatic car wash might have room for 10 cars to wait in a
line to enter into the mechanism
• When the system capacity is reached, the new customers
immediately joins the calling population
12
System capacity
• When the system is with limited capacity, distinction is made
between arrival rate and effective arrival rate
• Arrival rate  number of arrivals per time unit
• Effective arrival rate  the number who arrive and enter the
system per unit time
13
The arrival process
• The arrival process for infinite population models is usually
characterized in terms of interarrival times of successive
customers.
• May occur in scheduled times or random times
• Customers may arrive one at a time or in batches.
• The bacths may be of constant size or of random size.
• Most important model for random arrivals is Poisson arrival
process.
14
• If An represents the interarrival time in between customer n-1 and
customer n then for Poisson arrival process An is exponentially
distributed with the mean 1/λ time units.
• The arrival rate is λ customers per unit time.
• Eg. Arrival of people for resturants, banks, arrival of telephone
calls at call center, the arrival of demands, orders for a service or
product arrival of failed components machines for a repair
facility.,
15
• Second type of arrivals is scheduled arrivals, such as patients to a
doctor’s office or scheduled airline flight arrivals to an airport
• Third type of arrival is when at least a customer is assumed to
always to be present in the queue so that the server is never idle
because of lack of customers.
• In case of finite population models arrival process is classified as
pending and not pending
• Customer is defined as pending when customer is outside the
queuing system and a member of calling population
16
• Customer is defined as not pending when the customer gets served
by the server
• Eg. In a hospital the patients are pending when they are resting
and becomes not pending the instant they call for the nurse
• Runtime is defined for every customer i.e. length of time from
departure from the queuing system until the next customer arrives
into the queue.
17
Arrival process for a finite population model 18
Queuing behaviour and queuing discipline
• Queue behaviour refers to the actions of the customers while in a
queue waiting for a service to begin
• Incoming customers will
• Balk – leave when they see that the line is too long
• Renege- leave after being in the line when they see
the line is moving to slow
• Jockey- move from one line another if they think
they have chosen a slow line
19
• Queue discipline refers to logical ordering of customers in a queue
and determines which customers will be chosen for service when a
server becomes free
• Some queue disciplines include FIFO, LIFO, service in random
order (SIRO), shortest processing time first(SPT), service according
to priority (PR)
• In FIFO, the service begin in the same order as arrivals but the
customers can leave the system because of different length
service times
20
Service times and service mechanism
• Service times of successive arrivals are denoted by S1,S2,S3 …
• They may be constant or random.
• Customers can have same service times for a class or type of
customers
• Some times, different customers can also have different service
time distributions
• Service time may depend on time of day or upon the length of
waiting line
21
• Queueing system consists of number of service centers and
interconnecting queues.
• Parallel service mechanisms are either single server, multiple
server or unlimited server
• Self service facility is usually characterized as having unlimited
number of servers.
22
Eg. Warehouse
• Customers may either serve themselves or wait for one of three
clerks and then finally leave after paying at a single cashier.
• The system flow is shown in the following figure
• The subsystem, consisting of queue 2 and service center 2 is
shown in the figure
23
Discount warehouse with three service
centers 24
Service center 2, with c = 3 parallel servers 25
Ex. Candy manufacturer
• Has a production line that consists of three machines separated by
inventory in process buffers
• First machine makes and wraps the individual pieces of candy
• Second packs 50 pieces in a box
• Third machine seals and wraps the box.
• The inventory buffers have a capacity of 1000 boxes each
• Machine 1 shuts down whenever its inventory buffer fills to
capacity and machine 2 shuts down whenever its buffer empties.
26
Candy production line 27
Queuing notation
• Recognizing the diversity of queuing systems, Kendall proposed a
national system for parallel server systems which has been widely
adopted.
• The model is based on the format A/B/c/N/K. these letters
represent the following system characteristics:
28
A the inter arrival time distribution
B the service time distributions
C the number of parallel servers
N the system capacity
K the size of the calling population
Common symbols for A & B include
• M (exponential or Markov)
• D ( Constant or deterministic)
• Ek (Erlang of order k)
• PH (phase-type)
• H ( hyper exponential)
• G ( arbitrary or general)
• G1 ( general independent)
• Eg: M/M/1/∞/∞ indicates a single- server system that has
unlimited queue capacity and an infinite population
29
30
Long-Run measures of performance of
queuing systems
• Time Average Number in system ( L )
• The number of customers in a queue (LQ)
• Average Time Spent in System per Customer ( w )
• The conservation Equation: L = λw
• Server Utilization
• Costs in queuing problems
31
Time average number in system (L) 32
Time Average Number in System L
• Consider a queuing system over a period of Time T, & let L(t)
denote the no. of customers in the system at time t. let Ti denote
the total time during [0,T] in which the system contained exactly
i customers. The time –weighted-average number in a system is
defined by
•
33
• Many queuing systems exhibit a certain kind of long-run stability in
terms of their average performance . for such condition, the long
run time-average number in system , with probability 1 can be
given as
34
The number of customers in a queue (LQ) 35
36
Average Time Spent in System Per
Customer w
• If the simulation is done for a period of time , say T, then record
the time each customer spend in the system during [0,T], say
W1,W2…… WN where N is the number of arrivals during [0,T].
The average time spent in system per customer, called average
system time given as, where w is called long run average system
time.
37
• If the system under consideration is the queue alone, then the
equation can be written as
38
example
• For the system history shown in figure 1 N=5 customers. The
system has a single server and FIFO queue discipline.
• Arrivals occurs at the rate of 0,3,5,7 and 16.
• Departure time 2,8,10,14,20
• Find the average time spent in system per customer
39
figure 40
The conservation Equation : L = λW
• Consider a system with N= 5 arrivals in T=20 time units and thus
the observed arrival rate was λ = N/T.
• The relationship between L,λ, W is not coincidental.
• It holds for almost all queuing systems or subsystems regardless of
the number of servers, the queue discipline, or any other special
circumstances allowing T∞ and N ∞ equation becomes
L = λw, where λ is the long-run average arrival rate and the
equation is called conservation equation.
41
• It says that “ the average number of customers in the system at an
arbitrary point in time is equal to the product of average number
of arrivals per time unit, times the average time spent in the
system.
• The total system time of all customers is given by the total area
under the number-in-system function L(t)
42
Server Utilization
• Defined as the proportion of time that a server is busy. Long –run
server utilization is denoted by ρ. For the systems that exhibit
long run stability
43
M/M/1 queue
• M/M/1 queue will often be a useful approximate model when
service times have standard deviations approximately equal to
their means.
• The different steady state parameters can be calculated by
substituting σ² = 1 / μ² in the steady state parameter values of
M/G/1 queueing model
51
52
problem
• The inter arrival times and service times at a single –chair saloon
have been shown to exponentially distributed. The values of λ and
μ are 2 per hour and 3 per hour respectively. For this M/M/1 queue
determine
1. the time average number of customers in the system
2. The average time an arrival spends in system
3. The average time the customer spends in the queue
4. The time average number in the queue.
66
Question bank
• Explain the characteristics of queuing system
• Explain the queueing notation A/B/C/N/K with an example
• Explain the steady state parameters of M/M/1 queue
• Explain Long-Run measures of performance of queuing systems
• Give all the queueing notation of parallel server system
• Write short note on network of queues
• Dump truck and inventory system problems
67
Unit 5 questions
• Explain a single server queue simulation in java
• Explain the event schedule algorithm and list processing operation
• Write the GPSS block diagram for single server queue simulation
• What is boot strapping ? Explain time advance algorithm
68
End of unit 4
Thank you 

More Related Content

What's hot (20)

Introduction to queueing theory
Introduction to queueing theoryIntroduction to queueing theory
Introduction to queueing theory
 
QUEUING THEORY
QUEUING THEORYQUEUING THEORY
QUEUING THEORY
 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Ramniwas final
Ramniwas finalRamniwas final
Ramniwas final
 
Queuing theory and simulation (MSOR)
Queuing theory and simulation (MSOR)Queuing theory and simulation (MSOR)
Queuing theory and simulation (MSOR)
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
queuing theory/ waiting line theory
queuing theory/ waiting line theoryqueuing theory/ waiting line theory
queuing theory/ waiting line theory
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Waiting line mgmt
Waiting line mgmtWaiting line mgmt
Waiting line mgmt
 
Queue
QueueQueue
Queue
 
Queueing Theory and its BusinessS Applications
Queueing Theory and its BusinessS ApplicationsQueueing Theory and its BusinessS Applications
Queueing Theory and its BusinessS Applications
 
Queing theory and delay analysis
Queing theory and delay analysisQueing theory and delay analysis
Queing theory and delay analysis
 
Queuing Theory
Queuing TheoryQueuing Theory
Queuing Theory
 
Job shop scheduling
Job shop schedulingJob shop scheduling
Job shop scheduling
 
Simulation & Modeling - Smilulation Queuing System
Simulation & Modeling - Smilulation Queuing SystemSimulation & Modeling - Smilulation Queuing System
Simulation & Modeling - Smilulation Queuing System
 
OPERATION RESEARCH Simulation
OPERATION RESEARCH SimulationOPERATION RESEARCH Simulation
OPERATION RESEARCH Simulation
 
Chp. 2 simulation examples
Chp. 2 simulation examplesChp. 2 simulation examples
Chp. 2 simulation examples
 
Queuing Theory
Queuing TheoryQueuing Theory
Queuing Theory
 
Queuing Theory by Dr. B. J. Mohite
Queuing Theory by Dr. B. J. MohiteQueuing Theory by Dr. B. J. Mohite
Queuing Theory by Dr. B. J. Mohite
 

Viewers also liked

Simulation Techniques
Simulation TechniquesSimulation Techniques
Simulation Techniquesmailrenuka
 
Queuing Theory - Operation Research
Queuing Theory - Operation ResearchQueuing Theory - Operation Research
Queuing Theory - Operation ResearchManmohan Anand
 
Unit 1 introduction contd
Unit 1 introduction contdUnit 1 introduction contd
Unit 1 introduction contdraksharao
 
APPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINES
APPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINESAPPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINES
APPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINESPavel Islam
 
Waiting Line Management
Waiting Line Management Waiting Line Management
Waiting Line Management Joshua Miranda
 
Queuing theory
Queuing theoryQueuing theory
Queuing theoryAmit Sinha
 
Queuing theory network
Queuing theory networkQueuing theory network
Queuing theory networkAmit Dahal
 
Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logicraksharao
 
Heizer om10 mod_d-waiting-line models
Heizer om10 mod_d-waiting-line modelsHeizer om10 mod_d-waiting-line models
Heizer om10 mod_d-waiting-line modelsRozaimi Mohd Saad
 
Defining Gender and Sexuality
Defining Gender and SexualityDefining Gender and Sexuality
Defining Gender and SexualityAmy Goodloe
 
Unit 4 queuing models problems
Unit 4 queuing models problemsUnit 4 queuing models problems
Unit 4 queuing models problemsraksharao
 

Viewers also liked (19)

Queues
QueuesQueues
Queues
 
Priority queuing
Priority queuing Priority queuing
Priority queuing
 
Simulation Techniques
Simulation TechniquesSimulation Techniques
Simulation Techniques
 
Queuing Theory - Operation Research
Queuing Theory - Operation ResearchQueuing Theory - Operation Research
Queuing Theory - Operation Research
 
Unit 1 introduction contd
Unit 1 introduction contdUnit 1 introduction contd
Unit 1 introduction contd
 
APPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINES
APPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINESAPPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINES
APPLICATION OF QUEUE MODEL TO ENHANCE BANK SERVICE IN WAITING LINES
 
Heizer mod d
Heizer mod dHeizer mod d
Heizer mod d
 
Priority queue
Priority queuePriority queue
Priority queue
 
Heizer 12
Heizer 12Heizer 12
Heizer 12
 
Waiting Line Management
Waiting Line Management Waiting Line Management
Waiting Line Management
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Queuing theory network
Queuing theory networkQueuing theory network
Queuing theory network
 
Ot ch6 part3
Ot ch6 part3Ot ch6 part3
Ot ch6 part3
 
Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logic
 
Heizer om10 mod_d-waiting-line models
Heizer om10 mod_d-waiting-line modelsHeizer om10 mod_d-waiting-line models
Heizer om10 mod_d-waiting-line models
 
Queueing notes
Queueing notesQueueing notes
Queueing notes
 
Defining Gender and Sexuality
Defining Gender and SexualityDefining Gender and Sexuality
Defining Gender and Sexuality
 
Unit 4 queuing models problems
Unit 4 queuing models problemsUnit 4 queuing models problems
Unit 4 queuing models problems
 
Qarajeet
QarajeetQarajeet
Qarajeet
 

Similar to Unit 4 queuing models

Similar to Unit 4 queuing models (20)

Unit V - Queuing Theory
Unit V - Queuing TheoryUnit V - Queuing Theory
Unit V - Queuing Theory
 
08_Queueing_Models.pdf
08_Queueing_Models.pdf08_Queueing_Models.pdf
08_Queueing_Models.pdf
 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
4Queuing_Theory.ppt
4Queuing_Theory.ppt4Queuing_Theory.ppt
4Queuing_Theory.ppt
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Unit iv-1-qt
Unit iv-1-qtUnit iv-1-qt
Unit iv-1-qt
 
Simulation chapter 4
Simulation chapter 4Simulation chapter 4
Simulation chapter 4
 
Module 2 - Queuing Models and notations.pdf
Module 2 - Queuing Models and notations.pdfModule 2 - Queuing Models and notations.pdf
Module 2 - Queuing Models and notations.pdf
 
queueing problems in banking
queueing problems in bankingqueueing problems in banking
queueing problems in banking
 
Waiting line theroy
Waiting line theroyWaiting line theroy
Waiting line theroy
 
QUEUING THEORY
QUEUING THEORY QUEUING THEORY
QUEUING THEORY
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Opersea report waiting lines and queuing theory
Opersea report waiting lines and queuing theoryOpersea report waiting lines and queuing theory
Opersea report waiting lines and queuing theory
 
Waiting Lines.pptx
Waiting Lines.pptxWaiting Lines.pptx
Waiting Lines.pptx
 
OR Unit 5 queuing theory
OR Unit 5 queuing theoryOR Unit 5 queuing theory
OR Unit 5 queuing theory
 
Theory of queues
Theory of queuesTheory of queues
Theory of queues
 
Solving Of Waiting Lines Models in the Bank Using Queuing Theory Model the Pr...
Solving Of Waiting Lines Models in the Bank Using Queuing Theory Model the Pr...Solving Of Waiting Lines Models in the Bank Using Queuing Theory Model the Pr...
Solving Of Waiting Lines Models in the Bank Using Queuing Theory Model the Pr...
 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Application of Queuing Theory to Libraries and Information Centres
Application of Queuing Theory to Libraries and Information Centres Application of Queuing Theory to Libraries and Information Centres
Application of Queuing Theory to Libraries and Information Centres
 
4-Queuing-System-ioenotes.pdf
4-Queuing-System-ioenotes.pdf4-Queuing-System-ioenotes.pdf
4-Queuing-System-ioenotes.pdf
 

More from raksharao

Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inferenceraksharao
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiersraksharao
 
Unit 1 introduction to proofs
Unit 1  introduction to proofsUnit 1  introduction to proofs
Unit 1 introduction to proofsraksharao
 
Unit 7 verification & validation
Unit 7 verification & validationUnit 7 verification & validation
Unit 7 verification & validationraksharao
 
Unit 6 input modeling problems
Unit 6 input modeling problemsUnit 6 input modeling problems
Unit 6 input modeling problemsraksharao
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling raksharao
 
Unit 5 general principles, simulation software
Unit 5 general principles, simulation softwareUnit 5 general principles, simulation software
Unit 5 general principles, simulation softwareraksharao
 
Unit 5 general principles, simulation software problems
Unit 5  general principles, simulation software problemsUnit 5  general principles, simulation software problems
Unit 5 general principles, simulation software problemsraksharao
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationraksharao
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introductionraksharao
 
Module1 part2
Module1 part2Module1 part2
Module1 part2raksharao
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architectureraksharao
 
java-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletjava-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletraksharao
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 appletsraksharao
 
Chap3 multi threaded programming
Chap3 multi threaded programmingChap3 multi threaded programming
Chap3 multi threaded programmingraksharao
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingraksharao
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languagesraksharao
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programraksharao
 
output devices
output devicesoutput devices
output devicesraksharao
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handlingraksharao
 

More from raksharao (20)

Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 
Unit 1 introduction to proofs
Unit 1  introduction to proofsUnit 1  introduction to proofs
Unit 1 introduction to proofs
 
Unit 7 verification & validation
Unit 7 verification & validationUnit 7 verification & validation
Unit 7 verification & validation
 
Unit 6 input modeling problems
Unit 6 input modeling problemsUnit 6 input modeling problems
Unit 6 input modeling problems
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling
 
Unit 5 general principles, simulation software
Unit 5 general principles, simulation softwareUnit 5 general principles, simulation software
Unit 5 general principles, simulation software
 
Unit 5 general principles, simulation software problems
Unit 5  general principles, simulation software problemsUnit 5  general principles, simulation software problems
Unit 5 general principles, simulation software problems
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generation
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introduction
 
Module1 part2
Module1 part2Module1 part2
Module1 part2
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
 
java-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletjava-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of applet
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 applets
 
Chap3 multi threaded programming
Chap3 multi threaded programmingChap3 multi threaded programming
Chap3 multi threaded programming
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handling
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 
output devices
output devicesoutput devices
output devices
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handling
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Unit 4 queuing models

  • 2. Contents • Characteristics of queuing systems • Queuing notation • Simulation Examples: • Queuing • Inventory System 2
  • 3. Introduction • Simulation is often used in the analysis of queuing models • Queueing models whether solved mathematically or analysed through simulation, provide the analyst a powerful tool for designing and evaluating the performance of queuing systems. • Measures of system performance include • Server utilization (percentage of time a server is busy) • Length of waiting lines • Delays of customers • Simple queueing model is shown below 3
  • 5. Simple queueing model • Customers arrive from time to time and join a queue (waiting line) • They are eventually served and then finally they leave the system • Customers refers to any type of entity that can be viewed as requesting a service from a system • Eg. : service facilities, production systems, repair and maintenance facilities, communications and computer systems and transport and material handling systems 5
  • 6. Characteristics of queuing system • The key elements of queuing system are the customers and server • Customer refers to anything that arrives at a facility and requires service • Eg. people, machines, truck, mechanics, patients, pallets, airplanes , email, cases , orders , or dirty clothes • Server refers to anything that provides the requested service. • Eg. receptionists, repair personnel, mechanics, medical personnel, automatic storage and retrival machines such as cranes, runways at airport, automatic packers, order pickers, washing machines, CPU in computers 6
  • 8. Characteristics of queuing system • Calling population • System capacity • The Arrival Process • Queue Behavior and Queue Discipline • Service Times and the service Mechanism 8
  • 9. The calling population • The population of potential customers, is referred as the calling population which may be finite or infinite • Consider the following scenario to understand the terms calling population, customers and server • Consider the personal computers of the employees of a small company that are supported by the IT staff of three technicians • When a computer fails, needs new software etc, it is attended by one of IT staff. • Computers are the customers, IT staff is a server and calling population is finite here, consists of the personal computers at the company. 9
  • 10. The calling population • The systems with large population of potential customers, the calling population is assumed to be infinite. • The difference between the finite and infinite calling population is how the arrival rate is defined. • In infinite calling population, the arrival rate is not affected by the number of customers left the calling population and joined the queuing system • In finite calling population, the arrival rate to the queueing system does depend on the number of customers being served and waiting. 10
  • 11. The calling population • The arrival rate defined as the expected number of arrivals in the next unit of time • Eg. Consider a hospital with 5 patients assigned to a single nurse. • When all the patients are resting , the nurse is idle hence the arrival rate is maximum since any of the patients can call nurse for assistance next instant • When all the 5 patients have called the nurse then arrival rate is zero i.e. no arrival is possible until the nurse finishes with a patient. 11
  • 12. System Capacity • The limit to the number of customers that may be in the waiting line or system • Eg. Automatic car wash might have room for 10 cars to wait in a line to enter into the mechanism • When the system capacity is reached, the new customers immediately joins the calling population 12
  • 13. System capacity • When the system is with limited capacity, distinction is made between arrival rate and effective arrival rate • Arrival rate  number of arrivals per time unit • Effective arrival rate  the number who arrive and enter the system per unit time 13
  • 14. The arrival process • The arrival process for infinite population models is usually characterized in terms of interarrival times of successive customers. • May occur in scheduled times or random times • Customers may arrive one at a time or in batches. • The bacths may be of constant size or of random size. • Most important model for random arrivals is Poisson arrival process. 14
  • 15. • If An represents the interarrival time in between customer n-1 and customer n then for Poisson arrival process An is exponentially distributed with the mean 1/λ time units. • The arrival rate is λ customers per unit time. • Eg. Arrival of people for resturants, banks, arrival of telephone calls at call center, the arrival of demands, orders for a service or product arrival of failed components machines for a repair facility., 15
  • 16. • Second type of arrivals is scheduled arrivals, such as patients to a doctor’s office or scheduled airline flight arrivals to an airport • Third type of arrival is when at least a customer is assumed to always to be present in the queue so that the server is never idle because of lack of customers. • In case of finite population models arrival process is classified as pending and not pending • Customer is defined as pending when customer is outside the queuing system and a member of calling population 16
  • 17. • Customer is defined as not pending when the customer gets served by the server • Eg. In a hospital the patients are pending when they are resting and becomes not pending the instant they call for the nurse • Runtime is defined for every customer i.e. length of time from departure from the queuing system until the next customer arrives into the queue. 17
  • 18. Arrival process for a finite population model 18
  • 19. Queuing behaviour and queuing discipline • Queue behaviour refers to the actions of the customers while in a queue waiting for a service to begin • Incoming customers will • Balk – leave when they see that the line is too long • Renege- leave after being in the line when they see the line is moving to slow • Jockey- move from one line another if they think they have chosen a slow line 19
  • 20. • Queue discipline refers to logical ordering of customers in a queue and determines which customers will be chosen for service when a server becomes free • Some queue disciplines include FIFO, LIFO, service in random order (SIRO), shortest processing time first(SPT), service according to priority (PR) • In FIFO, the service begin in the same order as arrivals but the customers can leave the system because of different length service times 20
  • 21. Service times and service mechanism • Service times of successive arrivals are denoted by S1,S2,S3 … • They may be constant or random. • Customers can have same service times for a class or type of customers • Some times, different customers can also have different service time distributions • Service time may depend on time of day or upon the length of waiting line 21
  • 22. • Queueing system consists of number of service centers and interconnecting queues. • Parallel service mechanisms are either single server, multiple server or unlimited server • Self service facility is usually characterized as having unlimited number of servers. 22
  • 23. Eg. Warehouse • Customers may either serve themselves or wait for one of three clerks and then finally leave after paying at a single cashier. • The system flow is shown in the following figure • The subsystem, consisting of queue 2 and service center 2 is shown in the figure 23
  • 24. Discount warehouse with three service centers 24
  • 25. Service center 2, with c = 3 parallel servers 25
  • 26. Ex. Candy manufacturer • Has a production line that consists of three machines separated by inventory in process buffers • First machine makes and wraps the individual pieces of candy • Second packs 50 pieces in a box • Third machine seals and wraps the box. • The inventory buffers have a capacity of 1000 boxes each • Machine 1 shuts down whenever its inventory buffer fills to capacity and machine 2 shuts down whenever its buffer empties. 26
  • 28. Queuing notation • Recognizing the diversity of queuing systems, Kendall proposed a national system for parallel server systems which has been widely adopted. • The model is based on the format A/B/c/N/K. these letters represent the following system characteristics: 28 A the inter arrival time distribution B the service time distributions C the number of parallel servers N the system capacity K the size of the calling population
  • 29. Common symbols for A & B include • M (exponential or Markov) • D ( Constant or deterministic) • Ek (Erlang of order k) • PH (phase-type) • H ( hyper exponential) • G ( arbitrary or general) • G1 ( general independent) • Eg: M/M/1/∞/∞ indicates a single- server system that has unlimited queue capacity and an infinite population 29
  • 30. 30
  • 31. Long-Run measures of performance of queuing systems • Time Average Number in system ( L ) • The number of customers in a queue (LQ) • Average Time Spent in System per Customer ( w ) • The conservation Equation: L = λw • Server Utilization • Costs in queuing problems 31
  • 32. Time average number in system (L) 32
  • 33. Time Average Number in System L • Consider a queuing system over a period of Time T, & let L(t) denote the no. of customers in the system at time t. let Ti denote the total time during [0,T] in which the system contained exactly i customers. The time –weighted-average number in a system is defined by • 33
  • 34. • Many queuing systems exhibit a certain kind of long-run stability in terms of their average performance . for such condition, the long run time-average number in system , with probability 1 can be given as 34
  • 35. The number of customers in a queue (LQ) 35
  • 36. 36
  • 37. Average Time Spent in System Per Customer w • If the simulation is done for a period of time , say T, then record the time each customer spend in the system during [0,T], say W1,W2…… WN where N is the number of arrivals during [0,T]. The average time spent in system per customer, called average system time given as, where w is called long run average system time. 37
  • 38. • If the system under consideration is the queue alone, then the equation can be written as 38
  • 39. example • For the system history shown in figure 1 N=5 customers. The system has a single server and FIFO queue discipline. • Arrivals occurs at the rate of 0,3,5,7 and 16. • Departure time 2,8,10,14,20 • Find the average time spent in system per customer 39
  • 41. The conservation Equation : L = λW • Consider a system with N= 5 arrivals in T=20 time units and thus the observed arrival rate was λ = N/T. • The relationship between L,λ, W is not coincidental. • It holds for almost all queuing systems or subsystems regardless of the number of servers, the queue discipline, or any other special circumstances allowing T∞ and N ∞ equation becomes L = λw, where λ is the long-run average arrival rate and the equation is called conservation equation. 41
  • 42. • It says that “ the average number of customers in the system at an arbitrary point in time is equal to the product of average number of arrivals per time unit, times the average time spent in the system. • The total system time of all customers is given by the total area under the number-in-system function L(t) 42
  • 43. Server Utilization • Defined as the proportion of time that a server is busy. Long –run server utilization is denoted by ρ. For the systems that exhibit long run stability 43
  • 44. M/M/1 queue • M/M/1 queue will often be a useful approximate model when service times have standard deviations approximately equal to their means. • The different steady state parameters can be calculated by substituting σ² = 1 / μ² in the steady state parameter values of M/G/1 queueing model 51
  • 45. 52
  • 46. problem • The inter arrival times and service times at a single –chair saloon have been shown to exponentially distributed. The values of λ and μ are 2 per hour and 3 per hour respectively. For this M/M/1 queue determine 1. the time average number of customers in the system 2. The average time an arrival spends in system 3. The average time the customer spends in the queue 4. The time average number in the queue. 66
  • 47. Question bank • Explain the characteristics of queuing system • Explain the queueing notation A/B/C/N/K with an example • Explain the steady state parameters of M/M/1 queue • Explain Long-Run measures of performance of queuing systems • Give all the queueing notation of parallel server system • Write short note on network of queues • Dump truck and inventory system problems 67
  • 48. Unit 5 questions • Explain a single server queue simulation in java • Explain the event schedule algorithm and list processing operation • Write the GPSS block diagram for single server queue simulation • What is boot strapping ? Explain time advance algorithm 68
  • 49. End of unit 4 Thank you 