SlideShare a Scribd company logo
1 of 31
Present By : Ishara Amarasekera
Prabath Weerasinghe
By
Edward G. Coffman and Leonard Kleinrock
• Stochastic Process – A process that describes the data of
a random process.
• Markov Property - The memory less characteristic of
stochastic process.
• Memory less - Future state can be predicted without
knowing the previous states
1
What is Scheduling?
Scheduling is the method by which threads, processes or
data flows are given access to system resources.
Why need Scheduling?
To load balance and share system resources effectively or
achieve a target quality service.
2
P
QUEUEA(t)
PROCESS
OR
B(r)
q
• Units arrive from infinite source
• Units take the end of the queue immediately on their arrival
• Served a fixed amount of service (q) on FCFS basis
• If a unit being served completely within q, it exits the system
• If not, is removed from the processor and put back to the end of
the queue
How it works
3
• Once all units ahead are served, the interrupted unit is again
served. –Preemptive Resume
• The same will continue for all the units in the queue
How it works
P
QUEUEA(t)
PROCESS
OR
B(r)
q
4
• Average service time B(r) and Average arrival time A(r) is constant
• Q = Total Capacity or No. of instructions can be processed per
second
• n= No of units per second
• Therefore, Q/n = Amount of capacity shared among each unit per
second.
.
Consider RR system in which q 0
Q
PROCESSOR
q 0n
5
• Thus the processor is being shared among all units with Q/n
amount.
This leads to a Processor Shared Model
By making all units in the system receive service concurrently and
experience no waiting time in the queue.
Consider RR system in which q 0
Q
PROCESSOR
q 0n
6
• Input traffic is broken into P separate priority groups.
• Service Time given to a unit with priority p when q = 0 = gpq
• when q = 0
Service Time given to a unit with priority p = gp/ ∑ gini
f1
f1
.
.
f1
f2
f2
.
.
f2
.
.
fp
fp
.
fp
.
.
ƛp
N1 PRIORITY
UNITS
N2 PRIORITY
UNITS
NP PRIORITY
UNITS
• Unit with priority p might get a service time which is > Q/n due
to it’s priority
• A generalization of the processor shared model.
gp = Priority group
ni = number of members
from the group I present in
the system
7
How it works
PROCESSOR
q
ƛ
N
2
1
:
:
P
• Unit at the service point at any given queue level will not be
serviced unless all tower level queues are empty
•Unit at service is given a quantum (q) of service like in the RR
model
•If q is not enough, the unit will be subsequently placed at the end
of the next higher level queue 8
When q 0 and N is finite it gives a FCFS Model
When q 0 and N is infinite it gives a RR Model
i + 1
i
:
PROCESSOR
q
ƛ
N
1
P
:
9
i +
1
i
:
PROCESSOR
q
ƛ1
1
P
:
ƛ2
ƛp
• Different quantum sizes for different levels and different mean
times for different priory-level units are given.
• Units can come from outside.
•Until the Lowest level is the highest priority queue is processed
they need to wait.
10
• For all the models no overhead or swap time is
associated with the process of unloading and loading
units from the processor .
• Therefore the results may be viewed as upper bound of
system performance.
11
• Process with smallest time will be processed first
• Waiting time in the queue W(t).
• Non pre emptive, therefore this results slow response
time to new jobs.
t - service time
λ - Arrival rate
µ - Service rate
12
RR – Round Robin
Processor-Shared Models(q -> 0)
Priority Processor-Shared Model
Multiple Level FB Model
Priority Based Multiple Level FB Model
Shortest Job First
FCFS
When q limits to zero q -> 0
With priorities assigned – gp
With priorities assigned – gp
13
• Performances differ on each model.
• So need to analysis before recommending.
• Using Average Waiting Time W(t) is a good choice.
Wait.. define Average
Waiting Time.
14
“Average wait time for a given model is the sum of the
time spent in queues and the service.”
15
• Considering q ≠ 0 and time in service as negligible,
only the time in queue is taken to calculate the
average wait time.
• In FBN N -> α
• Wk = W(t) – t
• A graph is drawn with the average waiting time Wk
against the load ƿ.
• Load ƿ can be considered as the number if arrivals
per service.
ƿ = λ/μ 16
17
•FCFS is used as a reference.
•With respect to that;
o The average waiting time behavior of FN and RR
models at low load values.
o Which one is better for short service time units ?
o Which one is better for longer service time units ?
18
• When q ≠ 0, N -> α, λ = 0.5 sec,
μ = 1.0 sec
• Two separate graphs for both RR and FBα with two
events.
• 2 seconds service time event and 0.5 sec service time
event.
19
What is this ?
Why is this saw
tooth shape ?
What explains the
upper envelope
slope…..
20
Same questions can
be asked as of the
RR model
21
• Why those serrations ?
• What makes the increasing slopes ?
• What makes the decreasing slopes ?
• Reasoning the behavior between two
discontinuities ?
22
Unit with 2 sec service time.
System with 1 sec average service time.
Model A : q = 2.0 – ε
Model B : q = 1.0 – ε
What would contribute to the wait time the most ?
23
•Number of levels = 4
•Below 2/3 sec quantum size -> Sends the unit to level 4
24
•Processor-Shared Model
•Preemptive Processor-Shared Model
•Shortest Job First
All the above get analyzed in two graphs.
25
26
27
• Round Robin Model : Late – Arrival Systems Average
Wait Time
28
• There’s one in all kind of scheduling model.
• All are different in their own ways and usage differs
with the applications
• According to the Conservation Law :
- Any favors to some units would result in a
discrimination of some others.
• This is because of having a constant CPU capability.
29
Feedback Queueing Models for Time Shared Systems

More Related Content

What's hot

Boost.Pipeline scheduling of segments
Boost.Pipeline scheduling of segmentsBoost.Pipeline scheduling of segments
Boost.Pipeline scheduling of segmentserenon
 
INTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKINTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKJOLLUSUDARSHANREDDY
 
Transport layer and Application layer
Transport layer and Application layerTransport layer and Application layer
Transport layer and Application layerTharuniDiddekunta
 
Round-ribon algorithm presntation
Round-ribon algorithm presntationRound-ribon algorithm presntation
Round-ribon algorithm presntationJamsheed Ali
 
Arithmatic pipline
Arithmatic piplineArithmatic pipline
Arithmatic piplineA. Shamel
 
RR and priority scheduling
RR and priority schedulingRR and priority scheduling
RR and priority schedulingA. S. M. Shafi
 
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...Editor IJMTER
 
Dynamic Resource Management In a Massively Parallel Stream Processing Engine
 Dynamic Resource Management In a Massively Parallel Stream Processing Engine Dynamic Resource Management In a Massively Parallel Stream Processing Engine
Dynamic Resource Management In a Massively Parallel Stream Processing EngineKasper Grud Skat Madsen
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptxSanad Bhowmik
 
Mule batch introduction
Mule batch introductionMule batch introduction
Mule batch introductionSon Nguyen
 
The paxos commit algorithm
The paxos commit algorithmThe paxos commit algorithm
The paxos commit algorithmahmed hamza
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithmsAndrea Tino
 

What's hot (20)

Boost.Pipeline scheduling of segments
Boost.Pipeline scheduling of segmentsBoost.Pipeline scheduling of segments
Boost.Pipeline scheduling of segments
 
Communication
CommunicationCommunication
Communication
 
Mmclass10
Mmclass10Mmclass10
Mmclass10
 
INTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKINTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASK
 
Transport layer and Application layer
Transport layer and Application layerTransport layer and Application layer
Transport layer and Application layer
 
Homework solution1
Homework solution1Homework solution1
Homework solution1
 
Round-ribon algorithm presntation
Round-ribon algorithm presntationRound-ribon algorithm presntation
Round-ribon algorithm presntation
 
Arithmatic pipline
Arithmatic piplineArithmatic pipline
Arithmatic pipline
 
RR and priority scheduling
RR and priority schedulingRR and priority scheduling
RR and priority scheduling
 
Os5
Os5Os5
Os5
 
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
 
3D-DRESD Polaris
3D-DRESD Polaris3D-DRESD Polaris
3D-DRESD Polaris
 
Dynamic Resource Management In a Massively Parallel Stream Processing Engine
 Dynamic Resource Management In a Massively Parallel Stream Processing Engine Dynamic Resource Management In a Massively Parallel Stream Processing Engine
Dynamic Resource Management In a Massively Parallel Stream Processing Engine
 
message passing
 message passing message passing
message passing
 
Packet scheduling
Packet schedulingPacket scheduling
Packet scheduling
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
 
Mule batch introduction
Mule batch introductionMule batch introduction
Mule batch introduction
 
Scope of parallelism
Scope of parallelismScope of parallelism
Scope of parallelism
 
The paxos commit algorithm
The paxos commit algorithmThe paxos commit algorithm
The paxos commit algorithm
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
 

Similar to Feedback Queueing Models for Time Shared Systems

Operating system 30 preemptive scheduling
Operating system 30 preemptive schedulingOperating system 30 preemptive scheduling
Operating system 30 preemptive schedulingVaibhav Khanna
 
Queuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthQueuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthIdcIdk1
 
OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdfKp Sharma
 
dataprocess using different technology.ppt
dataprocess using different technology.pptdataprocess using different technology.ppt
dataprocess using different technology.pptssuserf6eb9b
 
3 process scheduling
3 process scheduling3 process scheduling
3 process schedulingahad alam
 
fggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggffffffffffffffffffffggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggfffffffffffffffffffadugnanegero
 
Process Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsProcess Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsKathirvelRajan2
 
3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------DivyaBorade3
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithmssathish sak
 
Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithmBinal Parekh
 
Ch6
Ch6Ch6
Ch6C.U
 

Similar to Feedback Queueing Models for Time Shared Systems (20)

Operating system 30 preemptive scheduling
Operating system 30 preemptive schedulingOperating system 30 preemptive scheduling
Operating system 30 preemptive scheduling
 
Os2
Os2Os2
Os2
 
Queuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthQueuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depth
 
OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdf
 
Unit - 5 Pipelining.pptx
Unit - 5 Pipelining.pptxUnit - 5 Pipelining.pptx
Unit - 5 Pipelining.pptx
 
dataprocess using different technology.ppt
dataprocess using different technology.pptdataprocess using different technology.ppt
dataprocess using different technology.ppt
 
Ch6 cpu scheduling
Ch6   cpu schedulingCh6   cpu scheduling
Ch6 cpu scheduling
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
 
fggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggffffffffffffffffffffggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggfffffffffffffffffff
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
 
Process Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsProcess Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating Systems
 
3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithms
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithm
 
Ch6
Ch6Ch6
Ch6
 
Os prj ppt
Os prj pptOs prj ppt
Os prj ppt
 
Ch5
Ch5Ch5
Ch5
 
OSCh6
OSCh6OSCh6
OSCh6
 

More from Ishara Amarasekera

Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapIshara Amarasekera
 
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxUI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxIshara Amarasekera
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 stepsIshara Amarasekera
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application TutorialIshara Amarasekera
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseIshara Amarasekera
 
Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Ishara Amarasekera
 
Activity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersActivity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersIshara Amarasekera
 
Layered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkLayered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkIshara Amarasekera
 
Goal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourGoal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourIshara Amarasekera
 

More from Ishara Amarasekera (9)

Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery Roadmap
 
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxUI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 steps
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
 
Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0
 
Activity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersActivity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone Accelerometers
 
Layered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkLayered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social network
 
Goal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourGoal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided Tour
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
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
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
“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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
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
 
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
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
“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...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

Feedback Queueing Models for Time Shared Systems

  • 1. Present By : Ishara Amarasekera Prabath Weerasinghe By Edward G. Coffman and Leonard Kleinrock
  • 2. • Stochastic Process – A process that describes the data of a random process. • Markov Property - The memory less characteristic of stochastic process. • Memory less - Future state can be predicted without knowing the previous states 1
  • 3. What is Scheduling? Scheduling is the method by which threads, processes or data flows are given access to system resources. Why need Scheduling? To load balance and share system resources effectively or achieve a target quality service. 2
  • 4. P QUEUEA(t) PROCESS OR B(r) q • Units arrive from infinite source • Units take the end of the queue immediately on their arrival • Served a fixed amount of service (q) on FCFS basis • If a unit being served completely within q, it exits the system • If not, is removed from the processor and put back to the end of the queue How it works 3
  • 5. • Once all units ahead are served, the interrupted unit is again served. –Preemptive Resume • The same will continue for all the units in the queue How it works P QUEUEA(t) PROCESS OR B(r) q 4
  • 6. • Average service time B(r) and Average arrival time A(r) is constant • Q = Total Capacity or No. of instructions can be processed per second • n= No of units per second • Therefore, Q/n = Amount of capacity shared among each unit per second. . Consider RR system in which q 0 Q PROCESSOR q 0n 5
  • 7. • Thus the processor is being shared among all units with Q/n amount. This leads to a Processor Shared Model By making all units in the system receive service concurrently and experience no waiting time in the queue. Consider RR system in which q 0 Q PROCESSOR q 0n 6
  • 8. • Input traffic is broken into P separate priority groups. • Service Time given to a unit with priority p when q = 0 = gpq • when q = 0 Service Time given to a unit with priority p = gp/ ∑ gini f1 f1 . . f1 f2 f2 . . f2 . . fp fp . fp . . ƛp N1 PRIORITY UNITS N2 PRIORITY UNITS NP PRIORITY UNITS • Unit with priority p might get a service time which is > Q/n due to it’s priority • A generalization of the processor shared model. gp = Priority group ni = number of members from the group I present in the system 7
  • 9. How it works PROCESSOR q ƛ N 2 1 : : P • Unit at the service point at any given queue level will not be serviced unless all tower level queues are empty •Unit at service is given a quantum (q) of service like in the RR model •If q is not enough, the unit will be subsequently placed at the end of the next higher level queue 8
  • 10. When q 0 and N is finite it gives a FCFS Model When q 0 and N is infinite it gives a RR Model i + 1 i : PROCESSOR q ƛ N 1 P : 9
  • 11. i + 1 i : PROCESSOR q ƛ1 1 P : ƛ2 ƛp • Different quantum sizes for different levels and different mean times for different priory-level units are given. • Units can come from outside. •Until the Lowest level is the highest priority queue is processed they need to wait. 10
  • 12. • For all the models no overhead or swap time is associated with the process of unloading and loading units from the processor . • Therefore the results may be viewed as upper bound of system performance. 11
  • 13. • Process with smallest time will be processed first • Waiting time in the queue W(t). • Non pre emptive, therefore this results slow response time to new jobs. t - service time λ - Arrival rate µ - Service rate 12
  • 14. RR – Round Robin Processor-Shared Models(q -> 0) Priority Processor-Shared Model Multiple Level FB Model Priority Based Multiple Level FB Model Shortest Job First FCFS When q limits to zero q -> 0 With priorities assigned – gp With priorities assigned – gp 13
  • 15. • Performances differ on each model. • So need to analysis before recommending. • Using Average Waiting Time W(t) is a good choice. Wait.. define Average Waiting Time. 14
  • 16. “Average wait time for a given model is the sum of the time spent in queues and the service.” 15
  • 17. • Considering q ≠ 0 and time in service as negligible, only the time in queue is taken to calculate the average wait time. • In FBN N -> α • Wk = W(t) – t • A graph is drawn with the average waiting time Wk against the load ƿ. • Load ƿ can be considered as the number if arrivals per service. ƿ = λ/μ 16
  • 18. 17
  • 19. •FCFS is used as a reference. •With respect to that; o The average waiting time behavior of FN and RR models at low load values. o Which one is better for short service time units ? o Which one is better for longer service time units ? 18
  • 20. • When q ≠ 0, N -> α, λ = 0.5 sec, μ = 1.0 sec • Two separate graphs for both RR and FBα with two events. • 2 seconds service time event and 0.5 sec service time event. 19
  • 21. What is this ? Why is this saw tooth shape ? What explains the upper envelope slope….. 20
  • 22. Same questions can be asked as of the RR model 21
  • 23. • Why those serrations ? • What makes the increasing slopes ? • What makes the decreasing slopes ? • Reasoning the behavior between two discontinuities ? 22
  • 24. Unit with 2 sec service time. System with 1 sec average service time. Model A : q = 2.0 – ε Model B : q = 1.0 – ε What would contribute to the wait time the most ? 23
  • 25. •Number of levels = 4 •Below 2/3 sec quantum size -> Sends the unit to level 4 24
  • 26. •Processor-Shared Model •Preemptive Processor-Shared Model •Shortest Job First All the above get analyzed in two graphs. 25
  • 27. 26
  • 28. 27
  • 29. • Round Robin Model : Late – Arrival Systems Average Wait Time 28
  • 30. • There’s one in all kind of scheduling model. • All are different in their own ways and usage differs with the applications • According to the Conservation Law : - Any favors to some units would result in a discrimination of some others. • This is because of having a constant CPU capability. 29