SlideShare ist ein Scribd-Unternehmen logo
1 von 13
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.

Weitere ähnliche Inhalte

Was ist angesagt?

Computer architecture page replacement algorithms
Computer architecture page replacement algorithmsComputer architecture page replacement algorithms
Computer architecture page replacement algorithmsMazin Alwaaly
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating Systemvivek223
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSThanveen
 
Real time-system
Real time-systemReal time-system
Real time-systemysush
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
Operating System Process Synchronization
Operating System Process SynchronizationOperating System Process Synchronization
Operating System Process SynchronizationHaziq Naeem
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsHariharan Ganesan
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Ismail Mukiibi
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OSAJAL A J
 
REAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMREAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMprakrutijsh
 
Difference Program vs Process vs Thread
Difference Program vs Process vs ThreadDifference Program vs Process vs Thread
Difference Program vs Process vs Threadjeetendra mandal
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating SystemKathirvel Ayyaswamy
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating SystemDr. Pankaj Zope
 
Introduction to FreeRTOS
Introduction to FreeRTOSIntroduction to FreeRTOS
Introduction to FreeRTOSICS
 

Was ist angesagt? (20)

Computer architecture page replacement algorithms
Computer architecture page replacement algorithmsComputer architecture page replacement algorithms
Computer architecture page replacement algorithms
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CS
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Real time-system
Real time-systemReal time-system
Real time-system
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
Operating System Process Synchronization
Operating System Process SynchronizationOperating System Process Synchronization
Operating System Process Synchronization
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OS
 
REAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMREAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEM
 
Difference Program vs Process vs Thread
Difference Program vs Process vs ThreadDifference Program vs Process vs Thread
Difference Program vs Process vs Thread
 
CS9222 Advanced Operating System
CS9222 Advanced Operating SystemCS9222 Advanced Operating System
CS9222 Advanced Operating System
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating System
 
Introduction to FreeRTOS
Introduction to FreeRTOSIntroduction to FreeRTOS
Introduction to FreeRTOS
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Complete Operating System notes
Complete Operating System notesComplete Operating System notes
Complete Operating System notes
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 

Ähnlich wie scheduling.pptx

LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesmanideepakc
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Shreya Kumar
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Mukesh Chinta
 
cospptagain.pptx
cospptagain.pptxcospptagain.pptx
cospptagain.pptxRaunakJha15
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .nathansel1
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.pptKeyreSebre
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process SchedulingShipra Swati
 
CPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationCPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationAnitaSofiaKeyser
 
Comparison of scheduling algorithms
Comparison of scheduling algorithmsComparison of scheduling algorithms
Comparison of scheduling algorithmslodhran-hayat
 
Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaioninayat khan
 
20118016 aryan sabat study and analysis of scheduler design
20118016 aryan sabat study and analysis of scheduler design20118016 aryan sabat study and analysis of scheduler design
20118016 aryan sabat study and analysis of scheduler design8016AryanSabat
 

Ähnlich wie scheduling.pptx (20)

Osy ppt - Copy.pptx
Osy ppt - Copy.pptxOsy ppt - Copy.pptx
Osy ppt - Copy.pptx
 
Scheduling
SchedulingScheduling
Scheduling
 
LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processes
 
cosppt.pptx
cosppt.pptxcosppt.pptx
cosppt.pptx
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
cpu scheduling.pdf
cpu scheduling.pdfcpu scheduling.pdf
cpu scheduling.pdf
 
cospptagain.pptx
cospptagain.pptxcospptagain.pptx
cospptagain.pptx
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process Scheduling
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
 
CPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationCPU scheduling in Operating System Explanation
CPU scheduling in Operating System Explanation
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Comparison of scheduling algorithms
Comparison of scheduling algorithmsComparison of scheduling algorithms
Comparison of scheduling algorithms
 
Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaion
 
20118016 aryan sabat study and analysis of scheduler design
20118016 aryan sabat study and analysis of scheduler design20118016 aryan sabat study and analysis of scheduler design
20118016 aryan sabat study and analysis of scheduler design
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
Cp usched 2
Cp usched  2Cp usched  2
Cp usched 2
 
Lecture 4 process cpu scheduling
Lecture 4   process cpu schedulingLecture 4   process cpu scheduling
Lecture 4 process cpu scheduling
 

Kürzlich hochgeladen

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 

Kürzlich hochgeladen (20)

NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 

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.