SlideShare a Scribd company logo
1 of 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.

More Related Content

Similar to 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 to 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
 

More from 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
 

More from 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
 

Recently uploaded

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
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
 
(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
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
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
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
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
 
(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
 
(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
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
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
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
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
 
(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
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
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
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
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
 
(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...
 
(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...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
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 )
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

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.