SlideShare a Scribd company logo
Video Lecture and E-Content Created by
R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech.,
Assistant Professor of Computer Science &
Assistant Professor and Head, Department of M.Com.(CA),
Ayya Nadar Janaki Ammal College,
Sivakasi – 626 124.
Mobile: 099440-42243
e-mail : sivamsccsit@gmail.com website: www.rdsivakumar.blogspot.in
SCHEDULING ALGORITHMS
CPU Scheduling algorithms decide which of the processes in the
ready queue is to be allocated to the CPU.
CPU SCHEDULING ALGORITHMS
Non Pre-emptive scheduling
Pre-emptive scheduling.
CPU SCHEDULING TYPES
Once the CPU has been allocated . In non-preemptive scheduling the
process keeps the CPU until it releases the CPU either by terminating or
by switching to the waiting state.
NON-PRE-EMPTIVE SCHEDULING
In pre-emptive scheduling, the process keeps the CPU until interrupt
occurs.
PRE-EMPTIVE SCHEDULING
It is Simplest CPU scheduling algorithm
It is non-preemptive scheduling algorithm
In this scheme, the process that requests the CPU first is allocated the CPU first
(or) the process enter the ready queue first is served first.
FIRST-COME, FIRST SERVED SCHEDULING
Waiting time
Waiting time = starting time – arrival time
Turn around time
Turn around time= finished time – arrival
time (Burst time + waiting time).
Response time
In non preemptive scheduling algorithm, the
average waiting time is equal to the average response time.
FCFS
In this scheme, the CPU is assigned to the process that has the
smallest next CPU burst.
It may be either preemptive (or) non preemptive.
SHORTEST JOB FIRST SCHEDULING
In preemptive shortest job first, the new process may have a
shorter next CPU burst than the currently executing process, it
will preempt the currently executing process.
Preemptive SJF scheduling is some times called “Shortest-
remaining-time-first Scheduling”.
PREEMPTIVE SJF SCHEDULING ALGORITHM
Comparing to FCFS algorithm, almost 50% waiting time saved in SJF.
ADVANTAGES
Big jobs are waiting so much time for CPU.
DISADVANTAGES
In this scheme, a priority is associated with each process and
the CPU is allocated to the process with the highest priority.
Equal priority processes are scheduled in FCFS order.
Priorities are indicated by range of numbers.
Low numbers represent the high priority
It may be either preemptive or non preemptive
PRIORITY SCHEDULING ALGORITHM
In preemptive priority scheduling algorithm, the new process may have
higher priority than the currently executing process, it will preempt the
currently executing process.
PREEMPTIVE
PRIORITY SCHEDULING ALGORITHM
It is a preemptive scheduling algorithm.
It is designed for time sharing systems.
In round robin scheduling, the ready queue is treated as a
circular queue.
In this scheduling, the CPU switches between the processes
when the time quantum expires.
ROUND ROBIN SCHEDULING
In this algorithm, the ready queue is partitioned with number of
ready queue.
Each ready queue has its own scheduling algorithm.
MULTI LEVEL QUEUE SCHEDULING
System process
Fore ground process
Background process
Student process
FOUR READY QUEUE PARTITIONS
The system process might be scheduled by an FCFS algorithm.
SYSTEM PROCESS
Foreground process is also known as interactive process.
It is might be scheduled by an short jump first algorithm.
FOREGROUND PROCESS
Background process is also known as batch process.
It is might be scheduled by an round robin algorithm.
BACKGROUND PROCESS
Student process might be scheduled by an SRJ algorithm.
STUDENT PROCESS
In this scheme, the ready queue is divided into number of queues.
It allows a process to move between processes.
ADVANTAGES
A process that waits too long into a lower-priority queue
may be moved to a higher priority queue.
MULTI LEVEL FEEDBACK
QUEUE SCHEDULING
In multi processor scheduling, each processor examines the common ready
queue and selects a process to execute.
MULTI PROCESSOR SCHEDULING
Scheduling Algorithms-R.D.Sivakumar

More Related Content

PPTX
Scheduling algo(by HJ)
Harshit Jain
 
PPTX
Process scheduling in Light weight weight and Heavy weight processes.
Shreya Kumar
 
PPTX
Cpu scheduling
Karthick Sekar
 
PDF
5 Process Scheduling
Dr. Loganathan R
 
PPT
Processor / CPU Scheduling
Izaz Roghani
 
DOCX
Cpu scheduling
marangburu42
 
PPT
Cp usched 2
nidsrajdev
 
PPT
17 cpu scheduling and scheduling criteria
myrajendra
 
Scheduling algo(by HJ)
Harshit Jain
 
Process scheduling in Light weight weight and Heavy weight processes.
Shreya Kumar
 
Cpu scheduling
Karthick Sekar
 
5 Process Scheduling
Dr. Loganathan R
 
Processor / CPU Scheduling
Izaz Roghani
 
Cpu scheduling
marangburu42
 
Cp usched 2
nidsrajdev
 
17 cpu scheduling and scheduling criteria
myrajendra
 

What's hot (20)

PDF
Scheduling
Mohd Arif
 
PPT
Os module 2 ba
Gichelle Amon
 
PPTX
CPU Scheduling in OS Presentation
usmankiyani1
 
PPTX
Scheduling algorithms
Paurav Shah
 
PPTX
PPT CPU
Arun kumar
 
PPT
OSCh6
Joe Christensen
 
PDF
Comparison Analysis of CPU Scheduling : FCFS, SJF and Round Robin
Universitas Pembangunan Panca Budi
 
PPTX
scheduling algorithm
nitish sandhawar
 
PPT
Ch6 CPU Scheduling galvin
Shubham Singh
 
PDF
Operating System-Process Scheduling
Shipra Swati
 
PPT
CPU Scheduling Algorithms
Shubhashish Punj
 
PPTX
CPU Sheduling
Prasad Sawant
 
PPT
cpu scheduling OS
Kiran Kumar Thota
 
PDF
cpu scheduling by shivam singh
shivam71291
 
PDF
Process Scheduling
International Islamic University
 
PPT
Scheduling algorithm (chammu)
Nagarajan
 
PPT
scheduling
Gaurav Shinde
 
PPTX
CPU Scheduling
M. Abdullah Wasif
 
PPTX
cpu scheduling
hashim102
 
Scheduling
Mohd Arif
 
Os module 2 ba
Gichelle Amon
 
CPU Scheduling in OS Presentation
usmankiyani1
 
Scheduling algorithms
Paurav Shah
 
PPT CPU
Arun kumar
 
Comparison Analysis of CPU Scheduling : FCFS, SJF and Round Robin
Universitas Pembangunan Panca Budi
 
scheduling algorithm
nitish sandhawar
 
Ch6 CPU Scheduling galvin
Shubham Singh
 
Operating System-Process Scheduling
Shipra Swati
 
CPU Scheduling Algorithms
Shubhashish Punj
 
CPU Sheduling
Prasad Sawant
 
cpu scheduling OS
Kiran Kumar Thota
 
cpu scheduling by shivam singh
shivam71291
 
Scheduling algorithm (chammu)
Nagarajan
 
scheduling
Gaurav Shinde
 
CPU Scheduling
M. Abdullah Wasif
 
cpu scheduling
hashim102
 
Ad

Viewers also liked (13)

PPTX
Microsoft azure documentDB
Mohamed Elkhodary
 
PPTX
Introduction to Azure DocumentDB
Denny Lee
 
PPTX
Azure document DB
Sasha-Leigh Garret
 
PPTX
Sixth Sense Technology
Raga Deepthi
 
PPTX
Azure Document Db
Marco Parenzan
 
PDF
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
NoSQLmatters
 
PPTX
Sixth Sense Technology
Pallavi Sonone
 
PPTX
Sixth Sense Technology
Saugat Bhattacharjee
 
PPT
SIXTH SENSE TECHNOLOGY (PRANAV MISTRY) -WEAR YOUR WORLD!!!
Fathima Mizna Kalathingal
 
PPTX
Sixth Sense Technology
Navin Kumar
 
PPTX
Introducing DocumentDB
James Serra
 
PPTX
sixth sense technology 2014 ,by Richard Des Nieves,Bengaluru,kar,India.
Richard Des Nieves M
 
PPTX
The sixth sense technology complete ppt
atinav242
 
Microsoft azure documentDB
Mohamed Elkhodary
 
Introduction to Azure DocumentDB
Denny Lee
 
Azure document DB
Sasha-Leigh Garret
 
Sixth Sense Technology
Raga Deepthi
 
Azure Document Db
Marco Parenzan
 
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
NoSQLmatters
 
Sixth Sense Technology
Pallavi Sonone
 
Sixth Sense Technology
Saugat Bhattacharjee
 
SIXTH SENSE TECHNOLOGY (PRANAV MISTRY) -WEAR YOUR WORLD!!!
Fathima Mizna Kalathingal
 
Sixth Sense Technology
Navin Kumar
 
Introducing DocumentDB
James Serra
 
sixth sense technology 2014 ,by Richard Des Nieves,Bengaluru,kar,India.
Richard Des Nieves M
 
The sixth sense technology complete ppt
atinav242
 
Ad

Similar to Scheduling Algorithms-R.D.Sivakumar (20)

PPTX
LM10,11,12 - CPU SCHEDULING algorithms and its processes
manideepakc
 
PPTX
dsa.pptx
Sameenafathima4
 
PDF
cpu scheduling.pdf
MuralidharaV3
 
PPT
Introduction of cpu scheduling in operating system
kundansingh1642004
 
PPT
MODULE 2 for the cpu shcheduling and.ppt
adityaraj822269
 
PPTX
Scheduling
pradeepa velmurugan
 
PPTX
OS ASSIGNMENT.pptx
SrishtiManchanda5
 
PPTX
Process scheduling
Riya Choudhary
 
PPTX
Scheduling (sjf, fcfs and round robin
Kanza batool
 
PPTX
(CPU Scheduling) in operating systems.pptx
shujatssc
 
PPTX
Osy ppt - Copy.pptx
NikhilShinde253288
 
PPT
Ch6
Bilal Arshad
 
PDF
SchedulingAlgorithm_4.pdf
ImranKabir26
 
PPTX
CPU SCHEDULING ALGORITHMS-FCFS,SJF,RR.pptx
Rajapriya82
 
PPTX
Operating system 29 non preemptive scheduling
Vaibhav Khanna
 
PPTX
L6 CPU Scheduling.pptx
SeniorGaming
 
PPTX
Lecture 7.pptx Operating system lecture
ReelsShortVideo
 
PDF
THE EFFECTIVE WAY OF PROCESSOR PERFORMANCE ENHANCEMENT BY PROPER BRANCH HANDL...
cscpconf
 
PDF
The effective way of processor performance enhancement by proper branch handling
csandit
 
PPTX
AABBCCDDOPERATING_SYSTEM_PARA_SUBIR.pptx
pepecompany1
 
LM10,11,12 - CPU SCHEDULING algorithms and its processes
manideepakc
 
dsa.pptx
Sameenafathima4
 
cpu scheduling.pdf
MuralidharaV3
 
Introduction of cpu scheduling in operating system
kundansingh1642004
 
MODULE 2 for the cpu shcheduling and.ppt
adityaraj822269
 
OS ASSIGNMENT.pptx
SrishtiManchanda5
 
Process scheduling
Riya Choudhary
 
Scheduling (sjf, fcfs and round robin
Kanza batool
 
(CPU Scheduling) in operating systems.pptx
shujatssc
 
Osy ppt - Copy.pptx
NikhilShinde253288
 
SchedulingAlgorithm_4.pdf
ImranKabir26
 
CPU SCHEDULING ALGORITHMS-FCFS,SJF,RR.pptx
Rajapriya82
 
Operating system 29 non preemptive scheduling
Vaibhav Khanna
 
L6 CPU Scheduling.pptx
SeniorGaming
 
Lecture 7.pptx Operating system lecture
ReelsShortVideo
 
THE EFFECTIVE WAY OF PROCESSOR PERFORMANCE ENHANCEMENT BY PROPER BRANCH HANDL...
cscpconf
 
The effective way of processor performance enhancement by proper branch handling
csandit
 
AABBCCDDOPERATING_SYSTEM_PARA_SUBIR.pptx
pepecompany1
 

More from Sivakumar R D . (20)

PPTX
Internet Connections and Its Protocols - R D Sivakumar
Sivakumar R D .
 
PPT
Internet - R D Sivakumar.
Sivakumar R D .
 
PPTX
Data Communication - R D Sivakumar
Sivakumar R D .
 
PPTX
NETWORK SERVICES - R D Sivakumar
Sivakumar R D .
 
PPTX
Computer Communications - R D Sivakumar
Sivakumar R D .
 
PPTX
Online Data Protection - R D Sivakumar
Sivakumar R D .
 
PPT
Software Engineering - R.D.Sivakumar
Sivakumar R D .
 
PPT
Different Kinds of Internet Protocols - R.D.Sivakumar
Sivakumar R D .
 
PPT
Internet - R.D.Sivakumar
Sivakumar R D .
 
PPT
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
Sivakumar R D .
 
PPT
E-learning Packages - R.D.Sivakumar
Sivakumar R D .
 
PPT
Digital Communication - R.D.Sivakumar
Sivakumar R D .
 
PPT
Digigogy in Teaching - R.D.Sivakumar
Sivakumar R D .
 
PPT
Cyber Commerce Technology - R.D.Sivakumar
Sivakumar R D .
 
PPT
Video Lesson Creation - R.D.Sivakumar
Sivakumar R D .
 
PPT
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Sivakumar R D .
 
PPT
Innovative Presentation - R.D.Sivakumar
Sivakumar R D .
 
PPT
Open Source in E-Learning - R.D.Sivakumar
Sivakumar R D .
 
PPTX
Tuxpaint - R.D.Sivakumar
Sivakumar R D .
 
PPT
Academic Blog Design - R.D.Sivakumar
Sivakumar R D .
 
Internet Connections and Its Protocols - R D Sivakumar
Sivakumar R D .
 
Internet - R D Sivakumar.
Sivakumar R D .
 
Data Communication - R D Sivakumar
Sivakumar R D .
 
NETWORK SERVICES - R D Sivakumar
Sivakumar R D .
 
Computer Communications - R D Sivakumar
Sivakumar R D .
 
Online Data Protection - R D Sivakumar
Sivakumar R D .
 
Software Engineering - R.D.Sivakumar
Sivakumar R D .
 
Different Kinds of Internet Protocols - R.D.Sivakumar
Sivakumar R D .
 
Internet - R.D.Sivakumar
Sivakumar R D .
 
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
Sivakumar R D .
 
E-learning Packages - R.D.Sivakumar
Sivakumar R D .
 
Digital Communication - R.D.Sivakumar
Sivakumar R D .
 
Digigogy in Teaching - R.D.Sivakumar
Sivakumar R D .
 
Cyber Commerce Technology - R.D.Sivakumar
Sivakumar R D .
 
Video Lesson Creation - R.D.Sivakumar
Sivakumar R D .
 
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Sivakumar R D .
 
Innovative Presentation - R.D.Sivakumar
Sivakumar R D .
 
Open Source in E-Learning - R.D.Sivakumar
Sivakumar R D .
 
Tuxpaint - R.D.Sivakumar
Sivakumar R D .
 
Academic Blog Design - R.D.Sivakumar
Sivakumar R D .
 

Recently uploaded (20)

PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Virus sequence retrieval from NCBI database
yamunaK13
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 

Scheduling Algorithms-R.D.Sivakumar

  • 1. Video Lecture and E-Content Created by R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech., Assistant Professor of Computer Science & Assistant Professor and Head, Department of M.Com.(CA), Ayya Nadar Janaki Ammal College, Sivakasi – 626 124. Mobile: 099440-42243 e-mail : [email protected] website: www.rdsivakumar.blogspot.in SCHEDULING ALGORITHMS
  • 2. CPU Scheduling algorithms decide which of the processes in the ready queue is to be allocated to the CPU. CPU SCHEDULING ALGORITHMS
  • 3. Non Pre-emptive scheduling Pre-emptive scheduling. CPU SCHEDULING TYPES
  • 4. Once the CPU has been allocated . In non-preemptive scheduling the process keeps the CPU until it releases the CPU either by terminating or by switching to the waiting state. NON-PRE-EMPTIVE SCHEDULING
  • 5. In pre-emptive scheduling, the process keeps the CPU until interrupt occurs. PRE-EMPTIVE SCHEDULING
  • 6. It is Simplest CPU scheduling algorithm It is non-preemptive scheduling algorithm In this scheme, the process that requests the CPU first is allocated the CPU first (or) the process enter the ready queue first is served first. FIRST-COME, FIRST SERVED SCHEDULING
  • 7. Waiting time Waiting time = starting time – arrival time Turn around time Turn around time= finished time – arrival time (Burst time + waiting time). Response time In non preemptive scheduling algorithm, the average waiting time is equal to the average response time. FCFS
  • 8. In this scheme, the CPU is assigned to the process that has the smallest next CPU burst. It may be either preemptive (or) non preemptive. SHORTEST JOB FIRST SCHEDULING
  • 9. In preemptive shortest job first, the new process may have a shorter next CPU burst than the currently executing process, it will preempt the currently executing process. Preemptive SJF scheduling is some times called “Shortest- remaining-time-first Scheduling”. PREEMPTIVE SJF SCHEDULING ALGORITHM
  • 10. Comparing to FCFS algorithm, almost 50% waiting time saved in SJF. ADVANTAGES
  • 11. Big jobs are waiting so much time for CPU. DISADVANTAGES
  • 12. In this scheme, a priority is associated with each process and the CPU is allocated to the process with the highest priority. Equal priority processes are scheduled in FCFS order. Priorities are indicated by range of numbers. Low numbers represent the high priority It may be either preemptive or non preemptive PRIORITY SCHEDULING ALGORITHM
  • 13. In preemptive priority scheduling algorithm, the new process may have higher priority than the currently executing process, it will preempt the currently executing process. PREEMPTIVE PRIORITY SCHEDULING ALGORITHM
  • 14. It is a preemptive scheduling algorithm. It is designed for time sharing systems. In round robin scheduling, the ready queue is treated as a circular queue. In this scheduling, the CPU switches between the processes when the time quantum expires. ROUND ROBIN SCHEDULING
  • 15. In this algorithm, the ready queue is partitioned with number of ready queue. Each ready queue has its own scheduling algorithm. MULTI LEVEL QUEUE SCHEDULING
  • 16. System process Fore ground process Background process Student process FOUR READY QUEUE PARTITIONS
  • 17. The system process might be scheduled by an FCFS algorithm. SYSTEM PROCESS
  • 18. Foreground process is also known as interactive process. It is might be scheduled by an short jump first algorithm. FOREGROUND PROCESS
  • 19. Background process is also known as batch process. It is might be scheduled by an round robin algorithm. BACKGROUND PROCESS
  • 20. Student process might be scheduled by an SRJ algorithm. STUDENT PROCESS
  • 21. In this scheme, the ready queue is divided into number of queues. It allows a process to move between processes. ADVANTAGES A process that waits too long into a lower-priority queue may be moved to a higher priority queue. MULTI LEVEL FEEDBACK QUEUE SCHEDULING
  • 22. In multi processor scheduling, each processor examines the common ready queue and selects a process to execute. MULTI PROCESSOR SCHEDULING