SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
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

PPTX
pipeline in computer architecture design
PPTX
ANTI SLEEP ALARM
PPTX
D block-elements
PDF
Project Scheduling & Controls
PDF
Project Schedule Planning and Development - A Guide to Develop Reliable Proje...
PDF
S Curves Made Easy With Primavera P6
PPTX
Third stage of labour
PPTX
nep ppt.pptx
pipeline in computer architecture design
ANTI SLEEP ALARM
D block-elements
Project Scheduling & Controls
Project Schedule Planning and Development - A Guide to Develop Reliable Proje...
S Curves Made Easy With Primavera P6
Third stage of labour
nep ppt.pptx

What's hot (20)

PPTX
contiguous memory allocation.pptx
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPTX
Flowshop scheduling
PPT
Memory Management in OS
PPT
Context Switching
PPTX
File system structure
PPTX
Deadlock ppt
PPTX
Distributed database
PPTX
Recognition-of-tokens
PDF
Code optimization in compiler design
PPTX
Distributed file system
PPT
Memory management
PPTX
Semophores and it's types
PDF
Semaphores
PPTX
Process management os concept
PPTX
Segmentation in operating systems
PPTX
Interface specification
PPT
15. Transactions in DBMS
contiguous memory allocation.pptx
INTER PROCESS COMMUNICATION (IPC).pptx
Flowshop scheduling
Memory Management in OS
Context Switching
File system structure
Deadlock ppt
Distributed database
Recognition-of-tokens
Code optimization in compiler design
Distributed file system
Memory management
Semophores and it's types
Semaphores
Process management os concept
Segmentation in operating systems
Interface specification
15. Transactions in DBMS
Ad

Similar to Scheduling Definition, objectives and types (20)

PPTX
topic cpu scheduling in operating system.pptx
PPTX
Schudling os presentaion
PPTX
Lecture 4 process cpu scheduling
PDF
Lecture 3 CPU scheduling_2.pdflllllllllll
PDF
Lecture 3 CPU scheduling.pdfvgukgiolphpiphjp
PDF
CPU Scheduling Part-I.pdf
PPTX
Lecture 4 - Process Scheduling (1).pptx
PPTX
Lecture 4 - Process Scheduling.pptx
PPTX
Operating system 28 fundamental of scheduling
PPTX
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
PPTX
Unit 2_OS process management
PPT
ch_scheduling (1).ppt
PPTX
In computing, scheduling is the action .
PPT
Introduction of cpu scheduling in operating system
PPT
MODULE 2 for the cpu shcheduling and.ppt
PPTX
Operating System.pptx
PPTX
Lecture 2 Processes in operating systems.pptx
PPTX
PROCESS.pptx
PPTX
programming .pptx
PDF
Section05 scheduling
topic cpu scheduling in operating system.pptx
Schudling os presentaion
Lecture 4 process cpu scheduling
Lecture 3 CPU scheduling_2.pdflllllllllll
Lecture 3 CPU scheduling.pdfvgukgiolphpiphjp
CPU Scheduling Part-I.pdf
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling.pptx
Operating system 28 fundamental of scheduling
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
Unit 2_OS process management
ch_scheduling (1).ppt
In computing, scheduling is the action .
Introduction of cpu scheduling in operating system
MODULE 2 for the cpu shcheduling and.ppt
Operating System.pptx
Lecture 2 Processes in operating systems.pptx
PROCESS.pptx
programming .pptx
Section05 scheduling
Ad

More from Maitree Patel (11)

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

Recently uploaded (20)

PPTX
additive manufacturing of ss316l using mig welding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
web development for engineering and engineering
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
PPT on Performance Review to get promotions
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPT
Project quality management in manufacturing
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPT
Mechanical Engineering MATERIALS Selection
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
composite construction of structures.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
additive manufacturing of ss316l using mig welding
CYBER-CRIMES AND SECURITY A guide to understanding
Lecture Notes Electrical Wiring System Components
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
web development for engineering and engineering
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT on Performance Review to get promotions
Internet of Things (IOT) - A guide to understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Project quality management in manufacturing
Embodied AI: Ushering in the Next Era of Intelligent Systems
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CH1 Production IntroductoryConcepts.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mechanical Engineering MATERIALS Selection
bas. eng. economics group 4 presentation 1.pptx
composite construction of structures.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

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.