SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
Ravindra Raju Kolahalam
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
koolkampus
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
Piyush Rochwani
 
Metrics for project size estimation
Metrics for project size estimationMetrics for project size estimation
Metrics for project size estimation
Nur Islam
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 
deadlock avoidance
deadlock avoidancedeadlock avoidance
deadlock avoidance
wahab13
 

Tendances (20)

Unified process model
Unified process modelUnified process model
Unified process model
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
 
Staffing level estimation
Staffing level estimation Staffing level estimation
Staffing level estimation
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Software design
Software designSoftware design
Software design
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
System software - macro expansion,nested macro calls
System software - macro expansion,nested macro callsSystem software - macro expansion,nested macro calls
System software - macro expansion,nested macro calls
 
Groupware
GroupwareGroupware
Groupware
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Software Engineering Practice
Software Engineering PracticeSoftware Engineering Practice
Software Engineering Practice
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating System
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Metrics for project size estimation
Metrics for project size estimationMetrics for project size estimation
Metrics for project size estimation
 
Algorithm and pseudocode conventions
Algorithm and pseudocode conventionsAlgorithm and pseudocode conventions
Algorithm and pseudocode conventions
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Virtual memory ppt
 
deadlock avoidance
deadlock avoidancedeadlock avoidance
deadlock avoidance
 

Similaire à Scheduling Definition, objectives and types

Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptx
Amanuelmergia
 
Lecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxLecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptx
Amanuelmergia
 
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
TSha7
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
ssuser000e54
 

Similaire à 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
 

Plus de 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
 

Dernier

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Dernier (20)

Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 

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.