SlideShare a Scribd company logo
processscheduler-150319224416-conversion-gate01.pdf
CONTENT…
INTRODUTION
OF
PROCESS
SCHEDULERS
PROCEES
SCHEDULER
A series of action or steps taken in order to
achieve a particular end.
A program that arranges computer’s operation
into an appropriate sequence.
A machine that organizes or maintain schedulers.
A process is a program during execution
PROCESS SCHEDULER
INTRODUCTION:
Multiprogramming is to have some process running at all times, to Maximum CPU
Utilization. To meet these objectives, the Process Scheduler selects available process
for a program execution of the CPU.
For a single-processor system, there will never be more than one running process, if
there are more processes, the rest will have to wait until the CPU is free and can be
Rescheduled.
A process migrates among the various scheduling queues throughout its lifetime. The
operating system must select, for scheduling purpose, processes from these queues in
some fashion. The selection process is carried out by the appropriate Scheduler.
Often, in Batch System, more processes are submitted than can be executed
immediately. These processes are spooled to a mass-storage device(Disk), where
they are kept for later execution.
The Long-term scheduler, or Job scheduler, selects processes from this pool and
loads them into memory for execution.
Whenever the CPU becomes IDLE the operating system must select one of the
processes in the Ready Queue to be executed.
The Short-term scheduler, or CPU scheduler, selects from among the processes that
are ready to execute and allocates the CPU to one of them.
STATE OF PROCESS
Start/New
Ready
Execution/Running
Waiting
Swapped
 Terminate
start Terminated
Diagram of process state
Start to Ready= Long Term Scheduler
Ready to Running= Mid Term Scheduler
Running to Waiting or waiting to ready= Short Term Scheduler
Process Control Block(PCB):-
TYPES OF PROCESS SCHEDULERS……
S.NO TYPES
1 Process Scheduler/CPU Scheduler
1.) Preemptive
2.) Non-Preemptive
2 Long- Term Scheduler
3 Medium- Term Scheduler
4 Short-Term Scheduler
5 Dispatcher
Process Scheduler /CPU Scheduler
Process scheduler is a part of the operating system that decides which process
runs at a certain point in time.
When CPU becomes idle the OS must select one of the processes in Ready Queue to be
executed
CPU Scheduler selects a process from the processes in memory that are ready to execute
(from Ready queue),allocates the CPU to one of them
CPU scheduling decisions may take place when a process:
 Switches from running to waiting state
 Terminates
 Switches from running to ready state. (e.g. when time slice of a process expires or an
interrupt occurs)
 Switches from waiting to ready state. (e.g. on completion of I/O)
 On arrival of a new process
The OS code that implements the CPU scheduling algorithm is known as CPU scheduler
In Pre-emptive scheduling the currently running process may be
interrupted and moved to the ready state by OS (forcefully)
In Non-preemptive Scheduling, the running process can only lose the
processor voluntarily by terminating or by requesting an I/O. OR, Once
CPU given to a process it cannot be preempted until the process
completes its CPU burst
Pre-emptive scheduling & Non-preemptive scheduling
Long Term Scheduler
 Determines which programs are admitted to the
system for processing
 Controls the degree of multiprogramming
 More processes, smaller percentage of time each
process is executed
Medium Term Scheduler
Part of the swapping function
Based on the need to manage the degree
of multiprogramming
Short Term Scheduling
Known as the dispatcher
Executes most frequently
Invoked when an event occurs
Clock interrupts
I/O interrupts
Operating system calls
Scheduling Criteria
Maximum Utilization of CPU
Waiting time should be minimum
Turn around time should be minimum
Response time should be minimum
Arrival time should be minimum
Note:- Total time taken by the process is called Turn around time.
processscheduler-150319224416-conversion-gate01.pdf

More Related Content

PPTX
Unit 2_OS process management
PPTX
PPTX
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
PPTX
Operating System
PPTX
Lecture 4 process cpu scheduling
PDF
Process management- This ppt contains all required information regarding oper...
PDF
CSI-503 - 13. Scheduler and Dispatcher
PPTX
Process Management of Operating Systems.
Unit 2_OS process management
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
Operating System
Lecture 4 process cpu scheduling
Process management- This ppt contains all required information regarding oper...
CSI-503 - 13. Scheduler and Dispatcher
Process Management of Operating Systems.

Similar to processscheduler-150319224416-conversion-gate01.pdf (20)

PPTX
Scheduling Definition, objectives and types
PDF
Process And Scheduling Algorithms in os
PPTX
Process scheduling.pptx
PPTX
RDos.pptx
PDF
seminar report
PPTX
Schudling os presentaion
PDF
operating systems classification university lec 2
PPTX
Os unit 3 , process management
PPTX
Module- Operating Systems presentation Two
PPT
Operating System
PDF
CSI-503 - 2. Processor Management
PPTX
Operating System Process Management.pptx
PPTX
CS403PC Operating System Lec 9 scheculing concepts.pptx
PPTX
Unit 1 process management operating system.pptx
PDF
Operating System-Concepts of Process
PPTX
Operating system 28 fundamental of scheduling
PDF
operating system 1.1.pdf
PDF
INTRODUCTION TO OPERATING SYSTEM_LESSON_4_SHARE.pdf
PPT
Chapter 2 (Part 2)
PPT
cpu scheduling OS
Scheduling Definition, objectives and types
Process And Scheduling Algorithms in os
Process scheduling.pptx
RDos.pptx
seminar report
Schudling os presentaion
operating systems classification university lec 2
Os unit 3 , process management
Module- Operating Systems presentation Two
Operating System
CSI-503 - 2. Processor Management
Operating System Process Management.pptx
CS403PC Operating System Lec 9 scheculing concepts.pptx
Unit 1 process management operating system.pptx
Operating System-Concepts of Process
Operating system 28 fundamental of scheduling
operating system 1.1.pdf
INTRODUCTION TO OPERATING SYSTEM_LESSON_4_SHARE.pdf
Chapter 2 (Part 2)
cpu scheduling OS
Ad

Recently uploaded (20)

PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
Artificial Intelligence
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
UNIT - 3 Total quality Management .pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPT
introduction to datamining and warehousing
PDF
Soil Improvement Techniques Note - Rabbi
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PDF
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Fundamentals of Mechanical Engineering.pptx
III.4.1.2_The_Space_Environment.p pdffdf
Artificial Intelligence
Categorization of Factors Affecting Classification Algorithms Selection
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
UNIT - 3 Total quality Management .pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
introduction to datamining and warehousing
Soil Improvement Techniques Note - Rabbi
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
R24 SURVEYING LAB MANUAL for civil enggi
Automation-in-Manufacturing-Chapter-Introduction.pdf
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Information Storage and Retrieval Techniques Unit III
86236642-Electric-Loco-Shed.pdf jfkduklg
Ad

processscheduler-150319224416-conversion-gate01.pdf

  • 4. PROCEES SCHEDULER A series of action or steps taken in order to achieve a particular end. A program that arranges computer’s operation into an appropriate sequence. A machine that organizes or maintain schedulers. A process is a program during execution
  • 5. PROCESS SCHEDULER INTRODUCTION: Multiprogramming is to have some process running at all times, to Maximum CPU Utilization. To meet these objectives, the Process Scheduler selects available process for a program execution of the CPU. For a single-processor system, there will never be more than one running process, if there are more processes, the rest will have to wait until the CPU is free and can be Rescheduled. A process migrates among the various scheduling queues throughout its lifetime. The operating system must select, for scheduling purpose, processes from these queues in some fashion. The selection process is carried out by the appropriate Scheduler. Often, in Batch System, more processes are submitted than can be executed immediately. These processes are spooled to a mass-storage device(Disk), where they are kept for later execution. The Long-term scheduler, or Job scheduler, selects processes from this pool and loads them into memory for execution. Whenever the CPU becomes IDLE the operating system must select one of the processes in the Ready Queue to be executed. The Short-term scheduler, or CPU scheduler, selects from among the processes that are ready to execute and allocates the CPU to one of them.
  • 7. start Terminated Diagram of process state Start to Ready= Long Term Scheduler Ready to Running= Mid Term Scheduler Running to Waiting or waiting to ready= Short Term Scheduler
  • 9. TYPES OF PROCESS SCHEDULERS…… S.NO TYPES 1 Process Scheduler/CPU Scheduler 1.) Preemptive 2.) Non-Preemptive 2 Long- Term Scheduler 3 Medium- Term Scheduler 4 Short-Term Scheduler 5 Dispatcher
  • 10. Process Scheduler /CPU Scheduler Process scheduler is a part of the operating system that decides which process runs at a certain point in time. When CPU becomes idle the OS must select one of the processes in Ready Queue to be executed CPU Scheduler selects a process from the processes in memory that are ready to execute (from Ready queue),allocates the CPU to one of them CPU scheduling decisions may take place when a process:  Switches from running to waiting state  Terminates  Switches from running to ready state. (e.g. when time slice of a process expires or an interrupt occurs)  Switches from waiting to ready state. (e.g. on completion of I/O)  On arrival of a new process The OS code that implements the CPU scheduling algorithm is known as CPU scheduler
  • 11. In Pre-emptive scheduling the currently running process may be interrupted and moved to the ready state by OS (forcefully) In Non-preemptive Scheduling, the running process can only lose the processor voluntarily by terminating or by requesting an I/O. OR, Once CPU given to a process it cannot be preempted until the process completes its CPU burst Pre-emptive scheduling & Non-preemptive scheduling
  • 12. Long Term Scheduler  Determines which programs are admitted to the system for processing  Controls the degree of multiprogramming  More processes, smaller percentage of time each process is executed
  • 13. Medium Term Scheduler Part of the swapping function Based on the need to manage the degree of multiprogramming
  • 14. Short Term Scheduling Known as the dispatcher Executes most frequently Invoked when an event occurs Clock interrupts I/O interrupts Operating system calls
  • 15. Scheduling Criteria Maximum Utilization of CPU Waiting time should be minimum Turn around time should be minimum Response time should be minimum Arrival time should be minimum Note:- Total time taken by the process is called Turn around time.