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)
PPTX
Process scheduling in Light weight weight and Heavy weight processes.
PPTX
Cpu scheduling
PDF
5 Process Scheduling
PPT
Processor / CPU Scheduling
DOCX
Cpu scheduling
PPT
Cp usched 2
PPT
17 cpu scheduling and scheduling criteria
Scheduling algo(by HJ)
Process scheduling in Light weight weight and Heavy weight processes.
Cpu scheduling
5 Process Scheduling
Processor / CPU Scheduling
Cpu scheduling
Cp usched 2
17 cpu scheduling and scheduling criteria

What's hot (20)

PDF
Scheduling
PPT
Os module 2 ba
PPTX
CPU Scheduling in OS Presentation
PPTX
Scheduling algorithms
PPTX
PPT CPU
PPT
PDF
Comparison Analysis of CPU Scheduling : FCFS, SJF and Round Robin
PPTX
scheduling algorithm
PPT
Ch6 CPU Scheduling galvin
PDF
Operating System-Process Scheduling
PPT
CPU Scheduling Algorithms
PPTX
CPU Sheduling
PPT
cpu scheduling OS
PDF
cpu scheduling by shivam singh
PDF
PPT
Scheduling algorithm (chammu)
PPT
scheduling
PPTX
CPU Scheduling
PPTX
cpu scheduling
Scheduling
Os module 2 ba
CPU Scheduling in OS Presentation
Scheduling algorithms
PPT CPU
Comparison Analysis of CPU Scheduling : FCFS, SJF and Round Robin
scheduling algorithm
Ch6 CPU Scheduling galvin
Operating System-Process Scheduling
CPU Scheduling Algorithms
CPU Sheduling
cpu scheduling OS
cpu scheduling by shivam singh
Scheduling algorithm (chammu)
scheduling
CPU Scheduling
cpu scheduling
Ad

Viewers also liked (13)

PPTX
Microsoft azure documentDB
PPTX
Introduction to Azure DocumentDB
PPTX
Azure document DB
PPTX
Sixth Sense Technology
PPTX
Azure Document Db
PDF
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
PPTX
Sixth Sense Technology
PPTX
Sixth Sense Technology
PPT
SIXTH SENSE TECHNOLOGY (PRANAV MISTRY) -WEAR YOUR WORLD!!!
PPTX
Sixth Sense Technology
PPTX
Introducing DocumentDB
PPTX
sixth sense technology 2014 ,by Richard Des Nieves,Bengaluru,kar,India.
PPTX
The sixth sense technology complete ppt
Microsoft azure documentDB
Introduction to Azure DocumentDB
Azure document DB
Sixth Sense Technology
Azure Document Db
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
Sixth Sense Technology
Sixth Sense Technology
SIXTH SENSE TECHNOLOGY (PRANAV MISTRY) -WEAR YOUR WORLD!!!
Sixth Sense Technology
Introducing DocumentDB
sixth sense technology 2014 ,by Richard Des Nieves,Bengaluru,kar,India.
The sixth sense technology complete ppt
Ad

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

PPTX
LM10,11,12 - CPU SCHEDULING algorithms and its processes
PPTX
dsa.pptx
PDF
cpu scheduling.pdf
PPT
Introduction of cpu scheduling in operating system
PPT
MODULE 2 for the cpu shcheduling and.ppt
PPTX
PPTX
OS ASSIGNMENT.pptx
PPTX
Process scheduling
PPTX
Scheduling (sjf, fcfs and round robin
PPTX
(CPU Scheduling) in operating systems.pptx
PPTX
Osy ppt - Copy.pptx
PPT
PDF
SchedulingAlgorithm_4.pdf
PPTX
CPU SCHEDULING ALGORITHMS-FCFS,SJF,RR.pptx
PPTX
Operating system 29 non preemptive scheduling
PPTX
L6 CPU Scheduling.pptx
PPTX
Lecture 7.pptx Operating system lecture
PDF
THE EFFECTIVE WAY OF PROCESSOR PERFORMANCE ENHANCEMENT BY PROPER BRANCH HANDL...
PDF
The effective way of processor performance enhancement by proper branch handling
PPTX
AABBCCDDOPERATING_SYSTEM_PARA_SUBIR.pptx
LM10,11,12 - CPU SCHEDULING algorithms and its processes
dsa.pptx
cpu scheduling.pdf
Introduction of cpu scheduling in operating system
MODULE 2 for the cpu shcheduling and.ppt
OS ASSIGNMENT.pptx
Process scheduling
Scheduling (sjf, fcfs and round robin
(CPU Scheduling) in operating systems.pptx
Osy ppt - Copy.pptx
SchedulingAlgorithm_4.pdf
CPU SCHEDULING ALGORITHMS-FCFS,SJF,RR.pptx
Operating system 29 non preemptive scheduling
L6 CPU Scheduling.pptx
Lecture 7.pptx Operating system lecture
THE EFFECTIVE WAY OF PROCESSOR PERFORMANCE ENHANCEMENT BY PROPER BRANCH HANDL...
The effective way of processor performance enhancement by proper branch handling
AABBCCDDOPERATING_SYSTEM_PARA_SUBIR.pptx

More from Sivakumar R D . (20)

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

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Renaissance Architecture: A Journey from Faith to Humanism
Week 4 Term 3 Study Techniques revisited.pptx
Final Presentation General Medicine 03-08-2024.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Microbial diseases, their pathogenesis and prophylaxis
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf

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 : sivamsccsit@gmail.com 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