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

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...Call girls in Ahmedabad 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
 
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
 
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
 
(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
 
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
 
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
 
(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
 
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
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(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
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
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
 
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
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.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...
 
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
 
(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...
 
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 )
 
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
 
(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
 
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...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(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...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
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
 
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 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
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

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.