Process Scheduling
The process scheduling is the activity of the process manager that handles the removal of the
running process from the CPU and the selection of another process on the basis of a particular
strategy.
The Operating System maintains the following important process scheduling queues –
Job queue − This queue keeps all the processes in the system.
Ready queue − This queue keeps a set of all processes residing in main memory,
ready and waiting to execute. A new process is always put in this queue.
Device queues − The processes which are blocked due to unavailability of an I/O
device constitute this queue.
A common representation of process scheduling is a queueing diagram, such as that in Figure
3.6. Each rectangular box represents a queue. Two types of queues are present: the ready queue
and a set of device queues. The circles represent the resources that serve the queues, and the arrows
indicate the flow of processes in the system.
A new process is initially put in the ready queue. It waits there until it is selected for execution, or
dispatched. Once the process is allocated the CPU and is executing, one of several events could
occur:
The process could issue an I/O request and then be placed in an I/O queue.
The process could create a new child process and wait for the child’s termination.
The process could be removed forcibly from the CPU, as a result of an interrupt, and be
put back in the ready queue.
Schedulers
Schedulers are special system software which handle process scheduling in various ways.
Schedulers are of three types −
Long-Term Scheduler
Short-Term Scheduler
Medium-Term Scheduler
LongTermScheduler
It is also called a job scheduler. A long-term scheduler determines which programs are admitted
to the system for processing. It selects processes from the queue and loads them into memory for
execution. Process loads into the memory for CPU scheduling.
ShortTermScheduler
It is also called as CPU scheduler. Its main objective is to increase system performance in
accordance with the chosen set of criteria. It is the change of ready state to running state of the
process. CPU scheduler selects a process among the processes that are ready to execute and
allocates CPU to one of them. Short-term schedulers, also known as dispatchers, make the
decision of which process to execute next. Short-term schedulers are faster than long-term
schedulers.
MediumTermScheduler
Medium-term scheduling is a part of swapping. It removes the processes from the memory. A
running process may become suspended if it makes an I/O request. A suspended processes cannot
make any progress towards completion. In this condition, to remove the process from memory
and make space for other processes, the suspended process is moved to the secondary storage.
This process is called swapping, and the process is said to be swapped out or rolled out

More Related Content

PDF
Processes description and process control.
PPTX
Process management1
PDF
PPTX
Central Processing Unit (CPU) – Part 2
PDF
Function of operating system
PPTX
Operating System
PDF
Unit 2 part 1(Process)
PPTX
Process concept
Processes description and process control.
Process management1
Central Processing Unit (CPU) – Part 2
Function of operating system
Operating System
Unit 2 part 1(Process)
Process concept

What's hot (18)

PPTX
Process control block(PCB)
PPTX
process control blockPcb
PPT
Operating System
PPTX
Mis unit iii by arnav
PPTX
The Functions of the Operating System
PPTX
The Functions of the Operating System
DOCX
Operating system
PPTX
Functions of the Operating System
PDF
Operating Systems 1 (6/12) - Processes
PPTX
process control block
PPTX
Control Unit (CU)
PPT
Processes Control Block (Operating System)
PPT
Real time os(suga)
PPTX
Processes
PPT
12 process control blocks
PPTX
Os concepts 4 functions of os
DOC
Lesson 7 Process Control Block
PPTX
Unix Process management
Process control block(PCB)
process control blockPcb
Operating System
Mis unit iii by arnav
The Functions of the Operating System
The Functions of the Operating System
Operating system
Functions of the Operating System
Operating Systems 1 (6/12) - Processes
process control block
Control Unit (CU)
Processes Control Block (Operating System)
Real time os(suga)
Processes
12 process control blocks
Os concepts 4 functions of os
Lesson 7 Process Control Block
Unix Process management
Ad

Similar to Process scheduling (20)

PDF
CSI-503 - 3. Process Scheduling
PDF
Process And Scheduling Algorithms in os
PPTX
PPTX
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
PDF
operating systems classification university lec 2
PPTX
Module- Operating Systems presentation Two
PDF
CSI-503 - 13. Scheduler and Dispatcher
PPTX
Lecture 4 process cpu scheduling
PPTX
Process scheduling
PDF
processscheduler-150319224416-conversion-gate01.pdf
PDF
seminar report
PDF
Operating system
PPTX
Unit 2_OS process management
PDF
Process management- This ppt contains all required information regarding oper...
PPT
Part 1 - PROCESS CONCEPTS
PDF
UNIT - 3 PPT(Part- 1)_.pdf
PPTX
Process scheduling.pptx
PPTX
52bf066dbfcc4d739fa99d255dba287a.pptx
PDF
Os unit 2
PDF
CSI-503 - 2. Processor Management
CSI-503 - 3. Process Scheduling
Process And Scheduling Algorithms in os
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
operating systems classification university lec 2
Module- Operating Systems presentation Two
CSI-503 - 13. Scheduler and Dispatcher
Lecture 4 process cpu scheduling
Process scheduling
processscheduler-150319224416-conversion-gate01.pdf
seminar report
Operating system
Unit 2_OS process management
Process management- This ppt contains all required information regarding oper...
Part 1 - PROCESS CONCEPTS
UNIT - 3 PPT(Part- 1)_.pdf
Process scheduling.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx
Os unit 2
CSI-503 - 2. Processor Management
Ad

More from A. S. M. Shafi (20)

DOCX
Data Warehouse Schema (Star, Snowflake).docx
PDF
Correlation Analysis in Machine Learning.pdf
PDF
Naive Bayes and Decision Tree Algorithm.pdf
PDF
Frequent Pattern Growth Mining Algorithm.pdf
PDF
Direct Hashing and Pruning Algorithm in Data MIning.pdf
PDF
Association Rule Mining with Apriori Algorithm.pdf
PDF
HITS Algorithm in Data and Web MIning.pdf
PDF
Page Rank Algorithm in Data Mining and Web Application.pdf
PDF
K Nearest Neighbor Classifier in Machine Learning.pdf
PDF
K Means Clustering Algorithm in Machine Learning.pdf
PDF
2D Transformation in Computer Graphics
PDF
3D Transformation in Computer Graphics
PDF
Projection
PDF
2D Transformation
PDF
Line drawing algorithm
PDF
Fragmentation
PDF
File organization
PDF
Bankers algorithm
PDF
RR and priority scheduling
PDF
Fcfs and sjf
Data Warehouse Schema (Star, Snowflake).docx
Correlation Analysis in Machine Learning.pdf
Naive Bayes and Decision Tree Algorithm.pdf
Frequent Pattern Growth Mining Algorithm.pdf
Direct Hashing and Pruning Algorithm in Data MIning.pdf
Association Rule Mining with Apriori Algorithm.pdf
HITS Algorithm in Data and Web MIning.pdf
Page Rank Algorithm in Data Mining and Web Application.pdf
K Nearest Neighbor Classifier in Machine Learning.pdf
K Means Clustering Algorithm in Machine Learning.pdf
2D Transformation in Computer Graphics
3D Transformation in Computer Graphics
Projection
2D Transformation
Line drawing algorithm
Fragmentation
File organization
Bankers algorithm
RR and priority scheduling
Fcfs and sjf

Recently uploaded (20)

PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
International_Financial_Reporting_Standa.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
IGGE1 Understanding the Self1234567891011
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Empowerment Technology for Senior High School Guide
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Computer Architecture Input Output Memory.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
My India Quiz Book_20210205121199924.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
International_Financial_Reporting_Standa.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Cambridge-Practice-Tests-for-IELTS-12.docx
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Hazard Identification & Risk Assessment .pdf
Unit 4 Computer Architecture Multicore Processor.pptx
IGGE1 Understanding the Self1234567891011
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
TNA_Presentation-1-Final(SAVE)) (1).pptx
Empowerment Technology for Senior High School Guide
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Computer Architecture Input Output Memory.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf

Process scheduling

  • 1. Process Scheduling The process scheduling is the activity of the process manager that handles the removal of the running process from the CPU and the selection of another process on the basis of a particular strategy. The Operating System maintains the following important process scheduling queues – Job queue − This queue keeps all the processes in the system. Ready queue − This queue keeps a set of all processes residing in main memory, ready and waiting to execute. A new process is always put in this queue. Device queues − The processes which are blocked due to unavailability of an I/O device constitute this queue. A common representation of process scheduling is a queueing diagram, such as that in Figure 3.6. Each rectangular box represents a queue. Two types of queues are present: the ready queue and a set of device queues. The circles represent the resources that serve the queues, and the arrows indicate the flow of processes in the system. A new process is initially put in the ready queue. It waits there until it is selected for execution, or dispatched. Once the process is allocated the CPU and is executing, one of several events could occur: The process could issue an I/O request and then be placed in an I/O queue. The process could create a new child process and wait for the child’s termination. The process could be removed forcibly from the CPU, as a result of an interrupt, and be put back in the ready queue.
  • 2. Schedulers Schedulers are special system software which handle process scheduling in various ways. Schedulers are of three types − Long-Term Scheduler Short-Term Scheduler Medium-Term Scheduler LongTermScheduler It is also called a job scheduler. A long-term scheduler determines which programs are admitted to the system for processing. It selects processes from the queue and loads them into memory for execution. Process loads into the memory for CPU scheduling. ShortTermScheduler It is also called as CPU scheduler. Its main objective is to increase system performance in accordance with the chosen set of criteria. It is the change of ready state to running state of the process. CPU scheduler selects a process among the processes that are ready to execute and allocates CPU to one of them. Short-term schedulers, also known as dispatchers, make the decision of which process to execute next. Short-term schedulers are faster than long-term schedulers. MediumTermScheduler Medium-term scheduling is a part of swapping. It removes the processes from the memory. A running process may become suspended if it makes an I/O request. A suspended processes cannot make any progress towards completion. In this condition, to remove the process from memory and make space for other processes, the suspended process is moved to the secondary storage. This process is called swapping, and the process is said to be swapped out or rolled out