SlideShare una empresa de Scribd logo
1 de 24
NON PRE-EMPTIVE SCHEDULING
ALGORITHM
SUBJECT : OPERATING SYSTEM(SEMINAR) GROUP MEMBERS
CLASS : 4IT1 KETAN CHUNARA(53)
KEVAL PARMAR(54)
KHUSHAL PRAJAPATI(55)
OUTLINES
1. SCHEDULING
2. NON PRE EMPTIVE SCHEDULING
3. ADVANTAGES & DISADVANTAGES
4. FIRST COME FIRST SERVE
5. SHORTEST JOB FIRST
6. NON PRE EMPTIVE PRIORITY
7. PREEMPTIVE VS NON PREEMPTIVE
8. CONCLUSION
3
SCHEDULING
 Scheduling is the process of selecting a process from a ready queue. And
allotting cpu to this process for execution.
 Scheduler is a part of operating system that allots computer resources to
the processes.
 Scheduler uses scheduling algorithms to decide which processes it must
allot to the cpu.
4
CONT...
 Scheduling provides
1) better efficiency
2) reduce any kind of delay
3) even waiting time
5
NON PRE EMPTIVE
SCHEDULING
6
NON PRE-EMPTIVE SCHEDULING
 In non pre-emptive scheduling, once a process is selected, it runs to
completion until is blocked for an i/o devices or other events.
 This scheduling does not interrupt a process running CPU in the middle
of the execution.
 It wait till the process completes its CPU burst time, and it can allocate
the CPU to another process.
7
ADVANTAGES OF NON PRE-EMPTIVE SCHEDULING
 It has a minimal scheduling burden.
 It is a very easy procedure.
 Less computational resources are used.
 It has a high throughput rate.
 It is a very simple method.
8
DISADVANTAGES OF NON PRE-EMPTIVE SCHEDULING
 It has poor response time for process.
 A machine can freeze up due to bugs.
 Waiting time is high.
9
TYPES OF NON PRE-
EMPTIVE SCHEDULING
10
FIRST COME FIRST SERVE
1) selection area
 As the name suggests, the FCFS assign the CPU to the process that
arrive first in the ready queue.
 This means that the process that requests the CPU for its execution first
will get the CPU allocated first.
2) decision mode
 Once a process is selected, it run until either it is blocked for an io or
some event or it is terminated
11
CONT...
3) implementation
 This method can be easily implemented by fifo.
 When CPU becomes free, a process from the first position in a queue is
selected to run.
12
EXAMPLE OF FCFS
13
CONT..
 Advantages of FCFS
1) it is a simplest form of scheduling algorithm.
2) its implementations is easy
 Disadvantages of FCFS
1) not efficient because average waiting time is high.
14
SHORTEST JOB FIRST
1) selection area
• The process, that requires shortest time to complete execution, is
served first.
2) decision mode
• Once a process is selected, it run until either it is blocked for io
some other event or it is terminated.
15
3) implementation
 This method can be easily implemented by FIFO.
 All processes in queue are sorted in ascending order based on their required
CPU bursts.
 When CPU becomes free, a process from the first position in a queue is
selected to run.
CONT...
16
EXAMPLE OF SJF
17
CONT..
 Advantages
1) less waiting time.
2) good response for short process.
 Disadvantages
1) it is difficult to estimate time required to complete execution.
2) starvation is possible for long process. Long process may wait forever.
18
NON-PRE-EMPTIVE PRIORITY
1) selection area
 The process, that has highest priority is served first.
2) decision mode
 Once a process is selected, it runs until it blocks for an io or some event or it
terminates.
19
CONT...
3) implementation
 This method can be implemented by using sorted fifo queue.
 All process in queue an sorted based on their priority with highest priority
process at front end.
 When cpu becomes free, a process from the first position in a queue is
selected to run.
20
EXAMPLE OF NON PRE-EMPTIVE
21
CONT...
 Advantages
1) priority is considered so critical process can get even better response time.
 Disadvantages
1) starvation is possible for low priority process. It can be overcome by using
technique called “aging”.
Aging : gradually increases the priority of process that wait in
the system for a long time.
22
DIFFERENCE
PRE-EMPTIVE
 In this resources are allocated to a
process for a limited time.
 Process can be interrupted in
between.
NON-PRE-EMPTIVE
 Once resources are allocated to a
process the process holds it till it
completes its burst time or switches
to waiting state.
 Process can not be interrupted until
it terminates itself or its time is up.
23
CONT...
 It has overheads of scheduling the
process.
 Flexible
 Cost associated
 Cpu utilization is high.
 Waiting time is less.
 Response time is less.
 It does not have overheads.
 Rigid
 No cost associated
 Cpu utilization is low.
 Waiting time is high.
 Response time is high.
24
CONCLUSION
 Non-pre emptive scheduling algorithms offer efficiency, predictability,
fairness, lower overhead, and simplicity, making them suitable for various
computing environments, especially those with stringent timing
requirements or resource limitations.

Más contenido relacionado

Similar a NON-PREEMPTIVE_SCHEDULING operating system

Cpu scheduling final
Cpu scheduling finalCpu scheduling final
Cpu scheduling finalmarangburu42
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithmsShanu Kumar
 
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
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.pptKeyreSebre
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Cpu scheduling pre final formatting
Cpu scheduling pre final formattingCpu scheduling pre final formatting
Cpu scheduling pre final formattingmarangburu42
 
Priority_Scheduling.pptx
Priority_Scheduling.pptxPriority_Scheduling.pptx
Priority_Scheduling.pptxSoumyaPanja2
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Mukesh Chinta
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx11SnehlataGujar
 
cospptagain.pptx
cospptagain.pptxcospptagain.pptx
cospptagain.pptxRaunakJha15
 
CPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationCPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationAnitaSofiaKeyser
 

Similar a NON-PREEMPTIVE_SCHEDULING operating system (20)

Cpu scheduling final
Cpu scheduling finalCpu scheduling final
Cpu scheduling final
 
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.
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
Unit 2 notes
Unit 2 notesUnit 2 notes
Unit 2 notes
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Cpu scheduling pre final formatting
Cpu scheduling pre final formattingCpu scheduling pre final formatting
Cpu scheduling pre final formatting
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Priority_Scheduling.pptx
Priority_Scheduling.pptxPriority_Scheduling.pptx
Priority_Scheduling.pptx
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 
52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx
 
cospptagain.pptx
cospptagain.pptxcospptagain.pptx
cospptagain.pptx
 
Scheduling
SchedulingScheduling
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
 

Más de chnrketan

priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organizationchnrketan
 
Seminar_ketan metaverse technology and a
Seminar_ketan metaverse technology and aSeminar_ketan metaverse technology and a
Seminar_ketan metaverse technology and achnrketan
 
Database managementsystemes_Unit-7.pptxe
Database managementsystemes_Unit-7.pptxeDatabase managementsystemes_Unit-7.pptxe
Database managementsystemes_Unit-7.pptxechnrketan
 
Framing in DLL computer networks and layers
Framing in DLL computer networks and layersFraming in DLL computer networks and layers
Framing in DLL computer networks and layerschnrketan
 
Java programing language unit 1 introduction
Java programing language unit 1 introductionJava programing language unit 1 introduction
Java programing language unit 1 introductionchnrketan
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentationchnrketan
 

Más de chnrketan (6)

priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
Seminar_ketan metaverse technology and a
Seminar_ketan metaverse technology and aSeminar_ketan metaverse technology and a
Seminar_ketan metaverse technology and a
 
Database managementsystemes_Unit-7.pptxe
Database managementsystemes_Unit-7.pptxeDatabase managementsystemes_Unit-7.pptxe
Database managementsystemes_Unit-7.pptxe
 
Framing in DLL computer networks and layers
Framing in DLL computer networks and layersFraming in DLL computer networks and layers
Framing in DLL computer networks and layers
 
Java programing language unit 1 introduction
Java programing language unit 1 introductionJava programing language unit 1 introduction
Java programing language unit 1 introduction
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 

Último

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
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
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
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
 
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
 
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
 
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
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Último (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(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
 
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
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
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
 
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...
 
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
 
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
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

NON-PREEMPTIVE_SCHEDULING operating system

  • 1. NON PRE-EMPTIVE SCHEDULING ALGORITHM SUBJECT : OPERATING SYSTEM(SEMINAR) GROUP MEMBERS CLASS : 4IT1 KETAN CHUNARA(53) KEVAL PARMAR(54) KHUSHAL PRAJAPATI(55)
  • 2. OUTLINES 1. SCHEDULING 2. NON PRE EMPTIVE SCHEDULING 3. ADVANTAGES & DISADVANTAGES 4. FIRST COME FIRST SERVE 5. SHORTEST JOB FIRST 6. NON PRE EMPTIVE PRIORITY 7. PREEMPTIVE VS NON PREEMPTIVE 8. CONCLUSION
  • 3. 3 SCHEDULING  Scheduling is the process of selecting a process from a ready queue. And allotting cpu to this process for execution.  Scheduler is a part of operating system that allots computer resources to the processes.  Scheduler uses scheduling algorithms to decide which processes it must allot to the cpu.
  • 4. 4 CONT...  Scheduling provides 1) better efficiency 2) reduce any kind of delay 3) even waiting time
  • 6. 6 NON PRE-EMPTIVE SCHEDULING  In non pre-emptive scheduling, once a process is selected, it runs to completion until is blocked for an i/o devices or other events.  This scheduling does not interrupt a process running CPU in the middle of the execution.  It wait till the process completes its CPU burst time, and it can allocate the CPU to another process.
  • 7. 7 ADVANTAGES OF NON PRE-EMPTIVE SCHEDULING  It has a minimal scheduling burden.  It is a very easy procedure.  Less computational resources are used.  It has a high throughput rate.  It is a very simple method.
  • 8. 8 DISADVANTAGES OF NON PRE-EMPTIVE SCHEDULING  It has poor response time for process.  A machine can freeze up due to bugs.  Waiting time is high.
  • 9. 9 TYPES OF NON PRE- EMPTIVE SCHEDULING
  • 10. 10 FIRST COME FIRST SERVE 1) selection area  As the name suggests, the FCFS assign the CPU to the process that arrive first in the ready queue.  This means that the process that requests the CPU for its execution first will get the CPU allocated first. 2) decision mode  Once a process is selected, it run until either it is blocked for an io or some event or it is terminated
  • 11. 11 CONT... 3) implementation  This method can be easily implemented by fifo.  When CPU becomes free, a process from the first position in a queue is selected to run.
  • 13. 13 CONT..  Advantages of FCFS 1) it is a simplest form of scheduling algorithm. 2) its implementations is easy  Disadvantages of FCFS 1) not efficient because average waiting time is high.
  • 14. 14 SHORTEST JOB FIRST 1) selection area • The process, that requires shortest time to complete execution, is served first. 2) decision mode • Once a process is selected, it run until either it is blocked for io some other event or it is terminated.
  • 15. 15 3) implementation  This method can be easily implemented by FIFO.  All processes in queue are sorted in ascending order based on their required CPU bursts.  When CPU becomes free, a process from the first position in a queue is selected to run. CONT...
  • 17. 17 CONT..  Advantages 1) less waiting time. 2) good response for short process.  Disadvantages 1) it is difficult to estimate time required to complete execution. 2) starvation is possible for long process. Long process may wait forever.
  • 18. 18 NON-PRE-EMPTIVE PRIORITY 1) selection area  The process, that has highest priority is served first. 2) decision mode  Once a process is selected, it runs until it blocks for an io or some event or it terminates.
  • 19. 19 CONT... 3) implementation  This method can be implemented by using sorted fifo queue.  All process in queue an sorted based on their priority with highest priority process at front end.  When cpu becomes free, a process from the first position in a queue is selected to run.
  • 20. 20 EXAMPLE OF NON PRE-EMPTIVE
  • 21. 21 CONT...  Advantages 1) priority is considered so critical process can get even better response time.  Disadvantages 1) starvation is possible for low priority process. It can be overcome by using technique called “aging”. Aging : gradually increases the priority of process that wait in the system for a long time.
  • 22. 22 DIFFERENCE PRE-EMPTIVE  In this resources are allocated to a process for a limited time.  Process can be interrupted in between. NON-PRE-EMPTIVE  Once resources are allocated to a process the process holds it till it completes its burst time or switches to waiting state.  Process can not be interrupted until it terminates itself or its time is up.
  • 23. 23 CONT...  It has overheads of scheduling the process.  Flexible  Cost associated  Cpu utilization is high.  Waiting time is less.  Response time is less.  It does not have overheads.  Rigid  No cost associated  Cpu utilization is low.  Waiting time is high.  Response time is high.
  • 24. 24 CONCLUSION  Non-pre emptive scheduling algorithms offer efficiency, predictability, fairness, lower overhead, and simplicity, making them suitable for various computing environments, especially those with stringent timing requirements or resource limitations.