SlideShare a Scribd company logo
7
Most read
8
Most read
9
Most read
By-
Niharika Gour
SGSITS INDORE
 First Come First Serve (FCFS) is an operating
system scheduling algorithm that
automatically executes queued requests and
processes in order of their arrival.
 It is the easiest and simplest CPU scheduling
algorithm.
 In this type of algorithm, processes which
requests the CPU first get the CPU allocation
first.
 Average waiting is high
Advantage-
 The simplest form of a CPU scheduling algorithm
 Easy to program
 First come first served
Disadvantages of FCFS
 It is a Non-Preemptive CPU scheduling algorithm, so
after the process has been allocated to the CPU, it will
never release the CPU until it finishes executing.
 The Average Waiting Time is high.
 Short processes that are at the back of the queue
have to wait for the long process at the front to
finish.
 Not an ideal technique for time-sharing systems.
Because of its simplicity, FCFS is not very efficient.
 Shortest Job First (SJF) is an algorithm in
which the process having the smallest
execution time is chosen for the next
execution.
 This scheduling method can be preemptive or
non-preemptive.
 It significantly reduces the average waiting
time for other processes awaiting execution
Pros –
 SJF is frequently used for long term scheduling.
 It reduces the average waiting time over FIFO (First in First
Out) algorithm.
 SJF method gives the lowest average waiting time for a
specific set of processes.
 It is appropriate for the jobs running in batch, where run
times are known in advance.
 For the batch system of long-term scheduling, a burst
time estimate can be obtained from the job description.
 For Short-Term Scheduling, we need to predict the value
of the next burst time.
 Probably optimal with regard to average turnaround time.
Cons-
 Job completion time must be known earlier, but it is hard
to predict.
 It is often used in a batch system for long term scheduling.
 SJF can’t be implemented for CPU scheduling for the short
term. It is because there is no specific method to predict
the length of the upcoming CPU burst.
 This algorithm may cause very long turnaround times or
starvation.
 Requires knowledge of how long a process or job will run.
 It leads to the starvation that does not reduce average
turnaround time.
 It is hard to know the length of the upcoming CPU request.
 Elapsed time should be recorded, that results in more
overhead on the processor
 Earliest Deadline First (EDF) is an optimal dynamic priority
scheduling algorithm used in real-time systems.
It can be used for both static and dynamic real-time scheduling.
 EDF uses priorities to the jobs for scheduling. It assigns priorities to
the task according to the absolute deadline. The task whose
deadline is closest gets the highest priority. The priorities are
assigned and changed in a dynamic fashion.
 EDF is very efficient as compared to other scheduling algorithms in
real-time systems. It can make the CPU utilization to about 100%
while still guaranteeing the deadlines of all the tasks.
 EDF includes the kernel overload. In EDF, if the CPU usage is less
than 100%, then it means that all the tasks have met the deadline.
EDF finds an optimal feasible schedule.
 Pros-
 It gives Maximum CPU Utilization
 It met up deadline of all tasks
 It allows both premptive and non preemptive
mode-
Cons-
Transient Overload Problem
 Resource Sharing Problem
 Efficient Implementation Problem
 Rate monotonic scheduling is an optimal
fixed-priority policy where the higher the
frequency (1/period) of a task, the higher is
its priority. This approach can be
implemented in any operating system
supporting the fixed-priority preemptive
Pros-
 It is easy to implement.
 If any static priority assignment algorithm can meet
the deadlines then rate monotonic scheduling can
also do the same. It is optimal.
 It consists of a calculated copy of the time periods,
unlike other time-sharing algorithms as Round robin
which neglects the scheduling needs of the
processes.
Cons-:
 It is very difficult to support aperiodic and sporadic
tasks under RMA.
 RMA is not optimal when the task period and
deadline differ.
 The name of this algorithm comes from the
round-robin principle, where each person
gets an equal share of something in turns. It
is the oldest, simplest scheduling algorithm,
which is mostly used for multitasking.
 In Round-robin scheduling, each ready task
runs turn by turn only in a cyclic queue for a
limited time slice. This algorithm also offers
starvation free execution of processes.
 Pros-
 It doesn’t face the issues of starvation or convoy effect.
 All the jobs get a fair allocation of CPU.
 It deals with all process without any priority
 If you know the total number of processes on the run queue,
then you can also assume the worst-case response time for the
same process.
 This scheduling method does not depend upon burst time.
That’s why it is easily implementable on the system.
 Once a process is executed for a specific set of the period, the
process is preempted, and another process executes for that
given time period.
 Allows OS to use the Context switching method to save states of
preempted processes.
 It gives the best performance in terms of average response time.
Cons-
 If slicing time of OS is low, the processor output will
be reduced.
 This method spends more time on context switching
 Its performance heavily depends on time quantum.
 Priorities cannot be set for the processes.
 Round-robin scheduling doesn’t give special priority
to more important tasks.
 Decreases comprehension
 Lower time quantum results in higher the context
switching overhead in the system.
 Finding a correct time quantum is a quite difficult
task in this system.

More Related Content

PDF
8. mutual exclusion in Distributed Operating Systems
PPTX
Associative memory 14208
PPTX
Error control
PPTX
Cache coherence ppt
PDF
Distributed Operating System_1
PPTX
Rtos concepts
PPT
Cache coherence
ODP
UMTS, Introduction.
8. mutual exclusion in Distributed Operating Systems
Associative memory 14208
Error control
Cache coherence ppt
Distributed Operating System_1
Rtos concepts
Cache coherence
UMTS, Introduction.

What's hot (20)

PPTX
Csma protocols
PPT
Real-Time Scheduling
PPTX
Kernels and its types
PPT
Evaluation of morden computer & system attributes in ACA
PPTX
Geographic Routing in WSN
PPTX
process and thread.pptx
PPTX
Hardware Software Codesign
PPT
pipelining
PPTX
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
PDF
Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
PPTX
Processor allocation in Distributed Systems
PPTX
Hardwired control
PDF
OS Memory Management
PPTX
Real time Operating System
PPTX
Ec8791 arm 9 processor
PPTX
WIRELESS TRANSMISSION
PPT
File replication
PDF
Lecture 1 introduction to parallel and distributed computing
PPT
message passing
Csma protocols
Real-Time Scheduling
Kernels and its types
Evaluation of morden computer & system attributes in ACA
Geographic Routing in WSN
process and thread.pptx
Hardware Software Codesign
pipelining
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
Processor allocation in Distributed Systems
Hardwired control
OS Memory Management
Real time Operating System
Ec8791 arm 9 processor
WIRELESS TRANSMISSION
File replication
Lecture 1 introduction to parallel and distributed computing
message passing
Ad

Similar to scheduling.pptx (20)

PPTX
Osy ppt - Copy.pptx
PPTX
Round-ribon algorithm presntation
PDF
Process scheduling (CPU Scheduling)
PPTX
Prinsha_Shrestha-Process Scheduling.pptx
PPT
Process Scheduling in Ope Spptystems rating
PPT
ch6- CPU scheduling https://www.slideshare.net/slideshow/operating-system-18-...
PPT
OS-operating systems- ch05 (CPU Scheduling) ...
PPTX
Chapter 3 - Operating System Scheduling.pptx
PDF
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
PPTX
Operating system
PDF
csc4320chapter5-2-101203002830-phpapp01.pdf
PPTX
Cpu scheduling in operating System.
PPT
CPU SCHEDULING IN OPERATING SYSTEMS IN DETAILED
PPTX
RoundRobin _ OS_LAB.pptx
PPTX
LM10,11,12 - CPU SCHEDULING algorithms and its processes
PDF
Real Time most famous algorithms
PPTX
Scheduling Algorithm in System Designing.pptx
PPT
Cpu scheduling
PPTX
Cpu scheduling
PPTX
Cpu scheduling
Osy ppt - Copy.pptx
Round-ribon algorithm presntation
Process scheduling (CPU Scheduling)
Prinsha_Shrestha-Process Scheduling.pptx
Process Scheduling in Ope Spptystems rating
ch6- CPU scheduling https://www.slideshare.net/slideshow/operating-system-18-...
OS-operating systems- ch05 (CPU Scheduling) ...
Chapter 3 - Operating System Scheduling.pptx
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
Operating system
csc4320chapter5-2-101203002830-phpapp01.pdf
Cpu scheduling in operating System.
CPU SCHEDULING IN OPERATING SYSTEMS IN DETAILED
RoundRobin _ OS_LAB.pptx
LM10,11,12 - CPU SCHEDULING algorithms and its processes
Real Time most famous algorithms
Scheduling Algorithm in System Designing.pptx
Cpu scheduling
Cpu scheduling
Cpu scheduling
Ad

Recently uploaded (20)

PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
DOCX
573137875-Attendance-Management-System-original
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Digital Logic Computer Design lecture notes
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
573137875-Attendance-Management-System-original
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Lesson 3_Tessellation.pptx finite Mathematics
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Lecture Notes Electrical Wiring System Components
Structs to JSON How Go Powers REST APIs.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
OOP with Java - Java Introduction (Basics)
Internet of Things (IOT) - A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Digital Logic Computer Design lecture notes
Operating System & Kernel Study Guide-1 - converted.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Geodesy 1.pptx...............................................
Strings in CPP - Strings in C++ are sequences of characters used to store and...

scheduling.pptx

  • 2.  First Come First Serve (FCFS) is an operating system scheduling algorithm that automatically executes queued requests and processes in order of their arrival.  It is the easiest and simplest CPU scheduling algorithm.  In this type of algorithm, processes which requests the CPU first get the CPU allocation first.  Average waiting is high
  • 3. Advantage-  The simplest form of a CPU scheduling algorithm  Easy to program  First come first served Disadvantages of FCFS  It is a Non-Preemptive CPU scheduling algorithm, so after the process has been allocated to the CPU, it will never release the CPU until it finishes executing.  The Average Waiting Time is high.  Short processes that are at the back of the queue have to wait for the long process at the front to finish.  Not an ideal technique for time-sharing systems. Because of its simplicity, FCFS is not very efficient.
  • 4.  Shortest Job First (SJF) is an algorithm in which the process having the smallest execution time is chosen for the next execution.  This scheduling method can be preemptive or non-preemptive.  It significantly reduces the average waiting time for other processes awaiting execution
  • 5. Pros –  SJF is frequently used for long term scheduling.  It reduces the average waiting time over FIFO (First in First Out) algorithm.  SJF method gives the lowest average waiting time for a specific set of processes.  It is appropriate for the jobs running in batch, where run times are known in advance.  For the batch system of long-term scheduling, a burst time estimate can be obtained from the job description.  For Short-Term Scheduling, we need to predict the value of the next burst time.  Probably optimal with regard to average turnaround time.
  • 6. Cons-  Job completion time must be known earlier, but it is hard to predict.  It is often used in a batch system for long term scheduling.  SJF can’t be implemented for CPU scheduling for the short term. It is because there is no specific method to predict the length of the upcoming CPU burst.  This algorithm may cause very long turnaround times or starvation.  Requires knowledge of how long a process or job will run.  It leads to the starvation that does not reduce average turnaround time.  It is hard to know the length of the upcoming CPU request.  Elapsed time should be recorded, that results in more overhead on the processor
  • 7.  Earliest Deadline First (EDF) is an optimal dynamic priority scheduling algorithm used in real-time systems. It can be used for both static and dynamic real-time scheduling.  EDF uses priorities to the jobs for scheduling. It assigns priorities to the task according to the absolute deadline. The task whose deadline is closest gets the highest priority. The priorities are assigned and changed in a dynamic fashion.  EDF is very efficient as compared to other scheduling algorithms in real-time systems. It can make the CPU utilization to about 100% while still guaranteeing the deadlines of all the tasks.  EDF includes the kernel overload. In EDF, if the CPU usage is less than 100%, then it means that all the tasks have met the deadline. EDF finds an optimal feasible schedule.
  • 8.  Pros-  It gives Maximum CPU Utilization  It met up deadline of all tasks  It allows both premptive and non preemptive mode- Cons- Transient Overload Problem  Resource Sharing Problem  Efficient Implementation Problem
  • 9.  Rate monotonic scheduling is an optimal fixed-priority policy where the higher the frequency (1/period) of a task, the higher is its priority. This approach can be implemented in any operating system supporting the fixed-priority preemptive
  • 10. Pros-  It is easy to implement.  If any static priority assignment algorithm can meet the deadlines then rate monotonic scheduling can also do the same. It is optimal.  It consists of a calculated copy of the time periods, unlike other time-sharing algorithms as Round robin which neglects the scheduling needs of the processes. Cons-:  It is very difficult to support aperiodic and sporadic tasks under RMA.  RMA is not optimal when the task period and deadline differ.
  • 11.  The name of this algorithm comes from the round-robin principle, where each person gets an equal share of something in turns. It is the oldest, simplest scheduling algorithm, which is mostly used for multitasking.  In Round-robin scheduling, each ready task runs turn by turn only in a cyclic queue for a limited time slice. This algorithm also offers starvation free execution of processes.
  • 12.  Pros-  It doesn’t face the issues of starvation or convoy effect.  All the jobs get a fair allocation of CPU.  It deals with all process without any priority  If you know the total number of processes on the run queue, then you can also assume the worst-case response time for the same process.  This scheduling method does not depend upon burst time. That’s why it is easily implementable on the system.  Once a process is executed for a specific set of the period, the process is preempted, and another process executes for that given time period.  Allows OS to use the Context switching method to save states of preempted processes.  It gives the best performance in terms of average response time.
  • 13. Cons-  If slicing time of OS is low, the processor output will be reduced.  This method spends more time on context switching  Its performance heavily depends on time quantum.  Priorities cannot be set for the processes.  Round-robin scheduling doesn’t give special priority to more important tasks.  Decreases comprehension  Lower time quantum results in higher the context switching overhead in the system.  Finding a correct time quantum is a quite difficult task in this system.