SlideShare a Scribd company logo
1 of 15
OPERATING SYSTEM
PRESENTATION ON CPU SCHEDULING ALGORITHMS IN OPERATING
SYSTEM
SUBMITTED TO : SUBMITTED BY:
MR. AKHAND PRATAP SINGH DEVANSHI CHOWDHARY
B.TECH ( CSE 3RD SEMESTER )
TABLE OF CONTENTS :
 Introduction
 Process states
 CPU scheduling criteria
 First come first serve
 Shortest job first
 Priority scheduling
 Round robin scheduling algorithm
 Analysis and results
INTRODUCTION :
The CPU scheduling is used to improve its efficiency .
It is used to allocate resources among competing processes .
Maximum CPU utilization is obtained with multi-programming .
 The processes which are to be executed are in ready queue .
 Every time the running process is blocked , the process in the
ready queue takes over the CPU .
A process may be :-
 I/0 BOUND : Involves more I/O operations . Example : reading from
disk.
 CPU BOUND : Involves more computation . Example : calculating
the sum of 2 numbers from the memory.
PROCESS STATES :
• The 3 states of the process are : ready , running and wait states .
• CPU scheduling is affected by the following set of circumstances :
a) A process switches from running to waiting state .
b) A process switches from running to ready state .
c) A process switches from waiting to ready state .
d) A process switches from running to terminated state .
CPU SCHEDULING CRITERIA :
CPU Utilization : Percent of time that the CPU is busy
executing a process .
Throughput : Number of processes executed per unit time .
Turnaround Time : The interval of time between submission
of process and its completion .
Waiting Time : The amount of time , the process spends in
the ready queue waiting for the CPU .
Response Time : The time between submission of requests
and first response to the request .
FIRST COME FIRST SERVE ( FCFS ) :
• The process which enters the queue first is
executed first .
• It is non – premptive .
FCFS :
• Advantages :
It is simple and easy to understand .
• Disadvantages :
The process with less execution time , suffers .
Favours CPU bound process then i/o bound process .
SHORTEST JOB FIRST ( SJF ) :
• The process with the lowest execution time is
executed first .
• It can be either premptive or non – premptive .
SJF :
• Advantages :
Shortest jobs are favoured .
• Disadvantages :
When there are more number of shorter jobs , longer
jobs starve .
PRIORITY SCHEDULING ( PS ) :
• Each process is associated with priority and the CPU is
allocated to each of them based on their priority .
• Multi process with same priority are dealt using FCFS .
PS :
• Advantages :
Priority scheduling provides a good mechanism where the relative
importance of each process may be precisely defined .
• Disadvantages :
If high priority processes use up a lot of CPU time , lower priority processes
may starve and may postponed indefinitely .
The situation where a process never gets scheduled to run is called
starvation .
Another problem with priority scheduling is deciding which process gets
which priority level assigned to it .
ROUND ROBIN ( RR ):
• Each process is allocated a time slot ( q ) . After this time has
elapsed , the process is prempted and added to the end of the
ready queue .
• Performance of the round – robin algorithm :
q is large -> FCFS
q is small -> q must be greater than the context switch time ;
otherwise , the overhead is too high .
RR :
• Advantages :
Round robin scheduling is fair in that every process gets an
equal share of the CPU .
• Disadvantages :
Setting the quantum too short , increases the overhead and
lowers the CPU efficiency , but setting it too long may cause
poor response to short processes .
ANALYSIS AND RESULT :
• Comparing the average turnaround time and waiting time , the
algorithms are ranked as SJF , FCFS , PS .
• Based on average CPU utilization , the algorithms are ranked as
FCFS , PS , SJF .
• In terms of execution speed , FCFS was found to be consistently
faster than PS and SJF .
Thus according to performance measure , the corresponding
scheduling algorithm is recommended to the CPU .
THANKYOU

More Related Content

What's hot

SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSMargrat C R
 
shortest job first
shortest job firstshortest job first
shortest job firsti i
 
Cpu scheduling algorithms simulation using java
Cpu scheduling algorithms simulation using javaCpu scheduling algorithms simulation using java
Cpu scheduling algorithms simulation using javajsivasrinivas
 
First Come First Serve
First Come First ServeFirst Come First Serve
First Come First ServeEdwin Makeu
 
Shortest job first Scheduling (SJF)
Shortest job first Scheduling (SJF)Shortest job first Scheduling (SJF)
Shortest job first Scheduling (SJF)ritu98
 
Operating system
Operating systemOperating system
Operating systemLovly Angel
 
Process scheduling algorithms
Process scheduling algorithmsProcess scheduling algorithms
Process scheduling algorithmsShubham Sharma
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithmsShanu Kumar
 
Comparision of scheduling algorithms
Comparision of scheduling algorithmsComparision of scheduling algorithms
Comparision of scheduling algorithmsTanya Makkar
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithmssathish sak
 
17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria 17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria myrajendra
 
first come first serve scheduling in os
first come first serve scheduling in os first come first serve scheduling in os
first come first serve scheduling in os mikeemukesh
 
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
 

What's hot (20)

SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
shortest job first
shortest job firstshortest job first
shortest job first
 
Cpu scheduling algorithms simulation using java
Cpu scheduling algorithms simulation using javaCpu scheduling algorithms simulation using java
Cpu scheduling algorithms simulation using java
 
First Come First Serve
First Come First ServeFirst Come First Serve
First Come First Serve
 
Shortest job first Scheduling (SJF)
Shortest job first Scheduling (SJF)Shortest job first Scheduling (SJF)
Shortest job first Scheduling (SJF)
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Operating system
Operating systemOperating system
Operating system
 
Sa by shekhar
Sa by shekharSa by shekhar
Sa by shekhar
 
Process scheduling algorithms
Process scheduling algorithmsProcess scheduling algorithms
Process scheduling algorithms
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithms
 
Comparision of scheduling algorithms
Comparision of scheduling algorithmsComparision of scheduling algorithms
Comparision of scheduling algorithms
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithms
 
cpu scheduling OS
 cpu scheduling OS cpu scheduling OS
cpu scheduling OS
 
17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria 17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria
 
first come first serve scheduling in os
first come first serve scheduling in os first come first serve scheduling in os
first come first serve scheduling in os
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Scheduling
 
Lecture 4 process cpu scheduling
Lecture 4   process cpu schedulingLecture 4   process cpu scheduling
Lecture 4 process cpu scheduling
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
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.
 
9 cm402.19
9 cm402.199 cm402.19
9 cm402.19
 

Similar to Operating system

Similar to Operating system (20)

Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OS
 
Cpu Schedule Algorithm
Cpu Schedule AlgorithmCpu Schedule Algorithm
Cpu Schedule Algorithm
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptx
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
Scheduling algo(by HJ)
Scheduling algo(by HJ)Scheduling algo(by HJ)
Scheduling algo(by HJ)
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Osy ppt - Copy.pptx
Osy ppt - Copy.pptxOsy ppt - Copy.pptx
Osy ppt - Copy.pptx
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 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
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdf
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
 
exp 3.docx
exp 3.docxexp 3.docx
exp 3.docx
 
cpu scheduling.pdf
cpu scheduling.pdfcpu scheduling.pdf
cpu scheduling.pdf
 
Scheduling
SchedulingScheduling
Scheduling
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 

Recently uploaded

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 

Operating system

  • 1. OPERATING SYSTEM PRESENTATION ON CPU SCHEDULING ALGORITHMS IN OPERATING SYSTEM SUBMITTED TO : SUBMITTED BY: MR. AKHAND PRATAP SINGH DEVANSHI CHOWDHARY B.TECH ( CSE 3RD SEMESTER )
  • 2. TABLE OF CONTENTS :  Introduction  Process states  CPU scheduling criteria  First come first serve  Shortest job first  Priority scheduling  Round robin scheduling algorithm  Analysis and results
  • 3. INTRODUCTION : The CPU scheduling is used to improve its efficiency . It is used to allocate resources among competing processes . Maximum CPU utilization is obtained with multi-programming .  The processes which are to be executed are in ready queue .  Every time the running process is blocked , the process in the ready queue takes over the CPU . A process may be :-  I/0 BOUND : Involves more I/O operations . Example : reading from disk.  CPU BOUND : Involves more computation . Example : calculating the sum of 2 numbers from the memory.
  • 4. PROCESS STATES : • The 3 states of the process are : ready , running and wait states . • CPU scheduling is affected by the following set of circumstances : a) A process switches from running to waiting state . b) A process switches from running to ready state . c) A process switches from waiting to ready state . d) A process switches from running to terminated state .
  • 5. CPU SCHEDULING CRITERIA : CPU Utilization : Percent of time that the CPU is busy executing a process . Throughput : Number of processes executed per unit time . Turnaround Time : The interval of time between submission of process and its completion . Waiting Time : The amount of time , the process spends in the ready queue waiting for the CPU . Response Time : The time between submission of requests and first response to the request .
  • 6. FIRST COME FIRST SERVE ( FCFS ) : • The process which enters the queue first is executed first . • It is non – premptive .
  • 7. FCFS : • Advantages : It is simple and easy to understand . • Disadvantages : The process with less execution time , suffers . Favours CPU bound process then i/o bound process .
  • 8. SHORTEST JOB FIRST ( SJF ) : • The process with the lowest execution time is executed first . • It can be either premptive or non – premptive .
  • 9. SJF : • Advantages : Shortest jobs are favoured . • Disadvantages : When there are more number of shorter jobs , longer jobs starve .
  • 10. PRIORITY SCHEDULING ( PS ) : • Each process is associated with priority and the CPU is allocated to each of them based on their priority . • Multi process with same priority are dealt using FCFS .
  • 11. PS : • Advantages : Priority scheduling provides a good mechanism where the relative importance of each process may be precisely defined . • Disadvantages : If high priority processes use up a lot of CPU time , lower priority processes may starve and may postponed indefinitely . The situation where a process never gets scheduled to run is called starvation . Another problem with priority scheduling is deciding which process gets which priority level assigned to it .
  • 12. ROUND ROBIN ( RR ): • Each process is allocated a time slot ( q ) . After this time has elapsed , the process is prempted and added to the end of the ready queue . • Performance of the round – robin algorithm : q is large -> FCFS q is small -> q must be greater than the context switch time ; otherwise , the overhead is too high .
  • 13. RR : • Advantages : Round robin scheduling is fair in that every process gets an equal share of the CPU . • Disadvantages : Setting the quantum too short , increases the overhead and lowers the CPU efficiency , but setting it too long may cause poor response to short processes .
  • 14. ANALYSIS AND RESULT : • Comparing the average turnaround time and waiting time , the algorithms are ranked as SJF , FCFS , PS . • Based on average CPU utilization , the algorithms are ranked as FCFS , PS , SJF . • In terms of execution speed , FCFS was found to be consistently faster than PS and SJF . Thus according to performance measure , the corresponding scheduling algorithm is recommended to the CPU .