SlideShare a Scribd company logo
1 of 14
Vadodara Institute of Engineering
Active Learning Assignment
Sub :- Operating Systems ( 2140702 )
Topic:- Scheduling Definition, objectives and types
Presented by:-
Kashyap Patel 15CE046
Krishna Patel 15CE047
Maitree Patel 15CE048
Computer Engineering - 1
Content
• Scheduling definition
• Scheduling objectives
• Types of schedulers
Scheduling
• Scheduling is a process which allows one process to use the
CPU while the execution of another process is on hold due to
unavailability of any resources.
• It’s aim is to make system efficient , fast and fair.
 Criteria for best scheduling algorithm:
CPU Utilization : Computer usage of memory and processing
resources or amount of work handle by a CPU.
Throughput : It is the total number of process completed per unit
time.
Response time : Amount time it taken from when a request was submitted
until first response is produced is called response time.
Turn around time : It is the total amount of time the process executed itself
on the CPU.
Waiting time : It is the amount of time a process waits to load itself on the
CPU.
Load average : average number of processes sitting in the ready queue
waiting for that turn to get onto CPU.
Fairness : All the jobs should get fair chance to get the use of CPU.
Efficiency : scheduler should keep the system busy whole time, if CPU and
all i/o devices can be kept running all the time more work can be done per
second.
Scheduling Objectives
When to schedule :
• When a new process is created , a decision needs to be made whether to run the
parent process or child process.
• A scheduling decision must be made when a process exits.
• When I/O interrupt occurs , a scheduling decision may be made.
Main objective of scheduling is :
• Be Fair
• Make the system fast
• Maximize throughput
• Increasing the profit.
• Increasing the output.
• Maximize number of users receiving acceptible response times.
• Reducing the manufacturing time.
• Minimizing the production costs
• Give better service to processes that have desirable behaviour patterns
Scheduler
• When a computer is multiprogrammed , it frequently has
multiple process or threads competing for the CPU at the
same time.
• This situation occurs whenever two or more of them are
simultaneously in the ready state.
• If only one CPU is available , a choice has to be made
which process to run next.
• The part of the operating system that makes the choice is
called the scheduler.
Types of schedulers
Schedulers are of 3 types :
1. Long term scheduler
2. Short term scheduler
3. Medium term scheduler
Long term schedulers
• It is also called job scheduler
• It determine which program are admitted to a system for
processing .
• It selects process from queue and loads them in to memory for
execution .
• On some system it may not me available or may be minimal .
• Time sharing operating systems have no long term scheduler.
• When process changes the state from new to ready, then there is
use of long term scheduler.
Short term schedulers
• It is also called CPU scheduler.
• Main objective is increasing system performance in accordance
with the chosen set of criteria .
• CPU scheduler selects process among the processes that are ready
to execute and allocates CPU to one of them.
• When process changes the state from ready to running, then there
is use of long term scheduler.
• They are also called as dispatchers.
• Context switching is done by dispatchers.
• Faster than long term schedulers .
 Dispatchers :
• It gives control of CPU to the process selected by short term
scheduler.
• This involves switching context , switching of user mode ,
jumping to proper location in the user program to restart
that program .
 Dispatcher latency :
• Time taken by dispatcher to stop one process and start
another .
Medium term schedulers
• It is the part of swapping .
• It removes the processes from memory .
• A running process may become suspended if it does not get
I/O resource needed.
• In this condition the process is move to the secondary
storage until it gets the resources.
• It is the part of time sharing operating system.
Conclusion
• From this topic we learn how the scheduler works, and how
scheduler allows one process to use the CPU while the execution of
another process is on hold due to unavailability of any resources.
References
http://staff.um.edu.mt/csta1/courses/lectures/csm202/os8.ht
ml
https://www.tutorialspoint.com/operating_system/os_proces
s_scheduling.html
http://www.studytonight.com/operating-system/cpu-
scheduling
Book : Modern operating systems by Andrew S.Tanenbaum
Scheduling Definition, objectives and types

More Related Content

What's hot

What's hot (20)

Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memory
 
Peephole Optimization
Peephole OptimizationPeephole Optimization
Peephole Optimization
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Program security
Program securityProgram security
Program security
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Deadlock ppt
Deadlock ppt Deadlock ppt
Deadlock ppt
 
Stepwise planning
Stepwise planningStepwise planning
Stepwise planning
 
Unified process model
Unified process modelUnified process model
Unified process model
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static Modeling
 
Metrics for project size estimation
Metrics for project size estimationMetrics for project size estimation
Metrics for project size estimation
 
System calls
System callsSystem calls
System calls
 
Ll(1) Parser in Compilers
Ll(1) Parser in CompilersLl(1) Parser in Compilers
Ll(1) Parser in Compilers
 
Token, Pattern and Lexeme
Token, Pattern and LexemeToken, Pattern and Lexeme
Token, Pattern and Lexeme
 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Virtual memory ppt
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
 
Dma transfer
Dma transferDma transfer
Dma transfer
 
Semaphores
SemaphoresSemaphores
Semaphores
 

Similar to Scheduling Definition, objectives and types

Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaioninayat khan
 
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxAmanuelmergia
 
Lecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxLecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxAmanuelmergia
 
Operating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingOperating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingVaibhav Khanna
 
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxCPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxTSha7
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management JayeshGadhave1
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .nathansel1
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptxDivyaKS18
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptxSHUJEHASSAN
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systemsRAMPRAKASHT1
 
Real Time Kernels and Operating Systems.pptx
Real Time Kernels and Operating Systems.pptxReal Time Kernels and Operating Systems.pptx
Real Time Kernels and Operating Systems.pptxGeethashreeAECE
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxssuser000e54
 

Similar to Scheduling Definition, objectives and types (20)

Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaion
 
Lecture 4 process cpu scheduling
Lecture 4   process cpu schedulingLecture 4   process cpu scheduling
Lecture 4 process cpu scheduling
 
CPU Scheduling Part-I.pdf
CPU Scheduling Part-I.pdfCPU Scheduling Part-I.pdf
CPU Scheduling Part-I.pdf
 
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptx
 
Lecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxLecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptx
 
Operating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingOperating system 28 fundamental of scheduling
Operating system 28 fundamental of scheduling
 
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxCPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptx
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptx
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 
UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
Processes and operating systems
Processes and operating systemsProcesses and operating systems
Processes and operating systems
 
Real Time Kernels and Operating Systems.pptx
Real Time Kernels and Operating Systems.pptxReal Time Kernels and Operating Systems.pptx
Real Time Kernels and Operating Systems.pptx
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
 

More from Maitree Patel

MACs based on Hash Functions, MACs based on Block Ciphers
MACs based on Hash Functions, MACs based on Block CiphersMACs based on Hash Functions, MACs based on Block Ciphers
MACs based on Hash Functions, MACs based on Block CiphersMaitree Patel
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validationMaitree Patel
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designMaitree Patel
 
Introduction of Memory Management
Introduction of Memory Management Introduction of Memory Management
Introduction of Memory Management Maitree Patel
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolMaitree Patel
 
Virtual circuit and Datagram network
Virtual circuit and Datagram networkVirtual circuit and Datagram network
Virtual circuit and Datagram networkMaitree Patel
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature FormulaMaitree Patel
 
Merge sort and Quick sort
Merge sort and Quick sortMerge sort and Quick sort
Merge sort and Quick sortMaitree Patel
 
Static Import and access modifiers
Static Import and access modifiersStatic Import and access modifiers
Static Import and access modifiersMaitree Patel
 

More from Maitree Patel (11)

MACs based on Hash Functions, MACs based on Block Ciphers
MACs based on Hash Functions, MACs based on Block CiphersMACs based on Hash Functions, MACs based on Block Ciphers
MACs based on Hash Functions, MACs based on Block Ciphers
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validation
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit design
 
Dotnet :Attributes
Dotnet :AttributesDotnet :Attributes
Dotnet :Attributes
 
Advance Java
Advance JavaAdvance Java
Advance Java
 
Introduction of Memory Management
Introduction of Memory Management Introduction of Memory Management
Introduction of Memory Management
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Virtual circuit and Datagram network
Virtual circuit and Datagram networkVirtual circuit and Datagram network
Virtual circuit and Datagram network
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature Formula
 
Merge sort and Quick sort
Merge sort and Quick sortMerge sort and Quick sort
Merge sort and Quick sort
 
Static Import and access modifiers
Static Import and access modifiersStatic Import and access modifiers
Static Import and access modifiers
 

Recently uploaded

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 

Scheduling Definition, objectives and types

  • 1. Vadodara Institute of Engineering Active Learning Assignment Sub :- Operating Systems ( 2140702 ) Topic:- Scheduling Definition, objectives and types Presented by:- Kashyap Patel 15CE046 Krishna Patel 15CE047 Maitree Patel 15CE048 Computer Engineering - 1
  • 2. Content • Scheduling definition • Scheduling objectives • Types of schedulers
  • 3. Scheduling • Scheduling is a process which allows one process to use the CPU while the execution of another process is on hold due to unavailability of any resources. • It’s aim is to make system efficient , fast and fair.  Criteria for best scheduling algorithm: CPU Utilization : Computer usage of memory and processing resources or amount of work handle by a CPU. Throughput : It is the total number of process completed per unit time.
  • 4. Response time : Amount time it taken from when a request was submitted until first response is produced is called response time. Turn around time : It is the total amount of time the process executed itself on the CPU. Waiting time : It is the amount of time a process waits to load itself on the CPU. Load average : average number of processes sitting in the ready queue waiting for that turn to get onto CPU. Fairness : All the jobs should get fair chance to get the use of CPU. Efficiency : scheduler should keep the system busy whole time, if CPU and all i/o devices can be kept running all the time more work can be done per second.
  • 5. Scheduling Objectives When to schedule : • When a new process is created , a decision needs to be made whether to run the parent process or child process. • A scheduling decision must be made when a process exits. • When I/O interrupt occurs , a scheduling decision may be made. Main objective of scheduling is : • Be Fair • Make the system fast • Maximize throughput • Increasing the profit. • Increasing the output. • Maximize number of users receiving acceptible response times. • Reducing the manufacturing time. • Minimizing the production costs • Give better service to processes that have desirable behaviour patterns
  • 6. Scheduler • When a computer is multiprogrammed , it frequently has multiple process or threads competing for the CPU at the same time. • This situation occurs whenever two or more of them are simultaneously in the ready state. • If only one CPU is available , a choice has to be made which process to run next. • The part of the operating system that makes the choice is called the scheduler.
  • 7. Types of schedulers Schedulers are of 3 types : 1. Long term scheduler 2. Short term scheduler 3. Medium term scheduler
  • 8. Long term schedulers • It is also called job scheduler • It determine which program are admitted to a system for processing . • It selects process from queue and loads them in to memory for execution . • On some system it may not me available or may be minimal . • Time sharing operating systems have no long term scheduler. • When process changes the state from new to ready, then there is use of long term scheduler.
  • 9. Short term schedulers • It is also called CPU scheduler. • Main objective is increasing system performance in accordance with the chosen set of criteria . • CPU scheduler selects process among the processes that are ready to execute and allocates CPU to one of them. • When process changes the state from ready to running, then there is use of long term scheduler. • They are also called as dispatchers. • Context switching is done by dispatchers. • Faster than long term schedulers .
  • 10.  Dispatchers : • It gives control of CPU to the process selected by short term scheduler. • This involves switching context , switching of user mode , jumping to proper location in the user program to restart that program .  Dispatcher latency : • Time taken by dispatcher to stop one process and start another .
  • 11. Medium term schedulers • It is the part of swapping . • It removes the processes from memory . • A running process may become suspended if it does not get I/O resource needed. • In this condition the process is move to the secondary storage until it gets the resources. • It is the part of time sharing operating system.
  • 12. Conclusion • From this topic we learn how the scheduler works, and how scheduler allows one process to use the CPU while the execution of another process is on hold due to unavailability of any resources.