SlideShare a Scribd company logo
1 of 16
C.K.PITHAWALA COLLEGE OF
ENGINEERING & TECHNOLOGY, SURAT
Branch:- computer 2nd Year/4th SEM
ALA Subject:- Operating System
ALA Topic Name:- CPU Scheduling Algorithms
Group No:-B4
Roll No. Enrolment No Name
Submitted To
Manan Shah
Divyesh Mistry
403
405
401
420
459
160090107051
160090107049
160090107025
160090107044
160090107059
Shubham Sharma
Pakshal Shah
Hariom Maurya
Pravin Rathod
Naitik Vajani
Chetan Sir
Yogesh Sir
Process Scheduling Algorithms: FCFS – SJF – RR ,
Multiprocessor scheduling :
Types , Performance evaluation of the scheduling
Contents:
• Scheduling Algorithms: FIFO
• Scheduling Algorithms: SJF
• Scheduling Algorithms: RR
• Multiprocessor Scheduling
• Performance Evaluation of the Scheduling
FIFO
• First come first serve scheduling method.
• Non-preemptive CPU scheduling algorithm.
• A queue is maintained containing the list of processes in the CPU.
• The processes are dispatched according to their arrival time at a ready queue.
CPU
Ready
queue
FIFO
Advantages
• Simple to implement
• Fine for most of the batch operating
systems
Disadvantages
• It cannot guarantee short response
time.
• Turnaround time is unpredictable.
• Average waiting time is often quite
long.
FIFO
PROCESS BURST TIME
P1 4
P2 7
P3 3
P4 3
P5 5
P1 P2 P3 P4 P5
0 4 11 14 17 22
Shortest Job First : SJF
• SJF algorithm handles the process based on the length of their CPU cycle time, the
process with shortest runtime is completed first.
• SJF scheduling algorithm may be preemptive or non-preemptive.
• It is optimal only when all the processes are available at the same time and the CPU
estimates are available.
Shortest Job First : SJF
Advantages
• Used frequently in long term scheduling.
• It reduces average waiting time over FIFO algorithm.
• It is appropriate for batch jobs for which run times are knows in advance.
Disadvantages
• It requires precise knowledge of how long a job or process will run which is not easily
available.
Shortest Job First : SJF
PROCESS BURST TIME
P1 5
P2 2
P3 6
P4 4
P2 P4 P1 P3
0 2 6 11 17
Round Robin : RR
• In RR algorithm, each process is given a limited amount of time slice and after the time
expires the system allocates the CPU to next process in the ready queue.
• RR is a preeemptive scheduling algorithm.
• Here the ready queue is treated as a circular queue and follows FIFO scheme.
• The CPU scheduler goes around the ready queue allocating the CPU to each process for
given time interval.
Round Robin : RR
Advantages
• It is a simple scheduling
algorithm and easy to implement
in software.
• Round robin scheduling is fair in
the sense that every process gets
an equal share of the CPU.
• If we know the number of
processes on the run queue, we
can know the worst-case
response time for a process.
Disadvantages
• If slicing time is too low, the
processor output is reduced.
More time is spent on context
switching.
• Higher Average Waiting Time
• No priority: Round-robin
scheduling, like other first-come,
first-served methods, doesn't
give special priority to more
important tasks
Round Robin : RR
PROCESS BURST TIME
P1 5
P2 2
P3 6
P4 4
P3 P2 P3 P4 P1 P3 P4 P1 P3
0 2 4 6 8 10 12 14 15 17
Time Slice = 2 s
Multiprocessor Scheduling
• Scheduling is two dimensional on a multiprocessor.
• Scheduling on a multiprocessor involves three issues:
a. The assignment of processes to processors.
b. The use of multiprogramming on individual processors.
c. The actual dispatching of a process.
• A key design issue for a multiprocessor scheduling is the selection of process for
execution.
• A more sophisticated scheduling based on priority and past usage may lead to a better
performance, compared with simpler FIFO algorithm.
Multiprocessor Scheduling
• Multiprocessing environment can be achieved with the help of threads.
• An application can be implemented as a set of threads, which cooperate and execute
concurrently in the same address space.
• Four general approaches of multiprocessor thread scheduling are:
• Load sharing : Here threads are not assigned to a particular processor, when a processor is
idle, it selects a thread from a global queue serving all processors.
• Gang scheduling : A set of related threads is scheduled to run on a set of processors at the
same time, on a one-to-one basis.
• Dedicated processor scheduling : When application is scheduled, its threads are assigned to a
processor.
• Dynamic scheduling : No. of threads are altered dynamically by the application.
Performance Evaluation of the Scheduling
• Performance evaluation of CPU Scheduling algorithm is done by the following 3
methods:
• Deterministic Modelling : It uses analytic method. It takes a particular predetermined
workload and defines the performance of each algorithm for that workload.
• Queuing Models : In this method, a queueing model is constructed so that queue lengths and
waiting time can be predicted for the given scheduling algorithm.
• Simulations : Simulations creates a model of the system, then processes statistical on real
data based on which necessary evaluation is done.
END OF PRESENTATION
THANK YOU

More Related Content

What's hot

distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system modelHarshad Umredkar
 
Operating system 32 logical versus physical address
Operating system 32 logical versus physical addressOperating system 32 logical versus physical address
Operating system 32 logical versus physical addressVaibhav Khanna
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Process management os concept
Process management os conceptProcess management os concept
Process management os conceptpriyadeosarkar91
 
Windows process-scheduling
Windows process-schedulingWindows process-scheduling
Windows process-schedulingTalha Shaikh
 
Processor allocation in Distributed Systems
Processor allocation in Distributed SystemsProcessor allocation in Distributed Systems
Processor allocation in Distributed SystemsRitu Ranjan Shrivastwa
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's typesNishant Joshi
 
INSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMINSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMKamran Ashraf
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin schedulingRaghav S
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.Ahsan Rahim
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptxRajapriya82
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharingTanuj Tyagi
 
Centralized shared memory architectures
Centralized shared memory architecturesCentralized shared memory architectures
Centralized shared memory architecturesGokuldhev mony
 
Disk scheduling algorithms
Disk scheduling algorithms Disk scheduling algorithms
Disk scheduling algorithms Paresh Parmar
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 

What's hot (20)

distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Operating system 32 logical versus physical address
Operating system 32 logical versus physical addressOperating system 32 logical versus physical address
Operating system 32 logical versus physical address
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Windows process-scheduling
Windows process-schedulingWindows process-scheduling
Windows process-scheduling
 
Resource management
Resource managementResource management
Resource management
 
Processor allocation in Distributed Systems
Processor allocation in Distributed SystemsProcessor allocation in Distributed Systems
Processor allocation in Distributed Systems
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's types
 
INSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMINSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISM
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin scheduling
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 
Multiprogramming&timesharing
Multiprogramming&timesharingMultiprogramming&timesharing
Multiprogramming&timesharing
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Centralized shared memory architectures
Centralized shared memory architecturesCentralized shared memory architectures
Centralized shared memory architectures
 
Disk scheduling algorithms
Disk scheduling algorithms Disk scheduling algorithms
Disk scheduling algorithms
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 

Similar to Process scheduling algorithms

programming .pptx
programming .pptxprogramming .pptx
programming .pptxSHUJEHASSAN
 
L6 CPU Scheduling.pptx
L6 CPU Scheduling.pptxL6 CPU Scheduling.pptx
L6 CPU Scheduling.pptxSeniorGaming
 
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
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdfAliyanAbbas1
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptxDivyaKS18
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxansariparveen06
 
Operating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingOperating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingPeter Tröger
 
Operating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingOperating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingVaibhav Khanna
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.pptKeyreSebre
 
CPU Scheduling.pptx
CPU Scheduling.pptxCPU Scheduling.pptx
CPU Scheduling.pptxyashu23
 
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxAmanuelmergia
 

Similar to Process scheduling algorithms (20)

programming .pptx
programming .pptxprogramming .pptx
programming .pptx
 
Operating system
Operating systemOperating system
Operating system
 
L6 CPU Scheduling.pptx
L6 CPU Scheduling.pptxL6 CPU Scheduling.pptx
L6 CPU Scheduling.pptx
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.
 
Lecture 4 process cpu scheduling
Lecture 4   process cpu schedulingLecture 4   process cpu scheduling
Lecture 4 process cpu scheduling
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdf
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptx
 
UNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptxUNIPROCESS SCHEDULING.pptx
UNIPROCESS SCHEDULING.pptx
 
PPT CPU
PPT CPUPPT CPU
PPT CPU
 
Operating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingOperating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - Scheduling
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
Osy ppt - Copy.pptx
Osy ppt - Copy.pptxOsy ppt - Copy.pptx
Osy ppt - Copy.pptx
 
Operating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingOperating system 28 fundamental of scheduling
Operating system 28 fundamental of scheduling
 
CPU Scheduling Part-III.pdf
CPU Scheduling Part-III.pdfCPU Scheduling Part-III.pdf
CPU Scheduling Part-III.pdf
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
CPU Scheduling Part-I.pdf
CPU Scheduling Part-I.pdfCPU Scheduling Part-I.pdf
CPU Scheduling Part-I.pdf
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 
Ch6 cpu scheduling
Ch6   cpu schedulingCh6   cpu scheduling
Ch6 cpu scheduling
 
CPU Scheduling.pptx
CPU Scheduling.pptxCPU Scheduling.pptx
CPU Scheduling.pptx
 
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptx
 

Recently uploaded

(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
 
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
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
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
 
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
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(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
 
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
 
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
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
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
 
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
 
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
 

Recently uploaded (20)

(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
 
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...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
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
 
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
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
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
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(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...
 
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
 
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...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
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
 
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
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
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
 

Process scheduling algorithms

  • 1. C.K.PITHAWALA COLLEGE OF ENGINEERING & TECHNOLOGY, SURAT Branch:- computer 2nd Year/4th SEM ALA Subject:- Operating System ALA Topic Name:- CPU Scheduling Algorithms Group No:-B4 Roll No. Enrolment No Name Submitted To Manan Shah Divyesh Mistry 403 405 401 420 459 160090107051 160090107049 160090107025 160090107044 160090107059 Shubham Sharma Pakshal Shah Hariom Maurya Pravin Rathod Naitik Vajani Chetan Sir Yogesh Sir
  • 2. Process Scheduling Algorithms: FCFS – SJF – RR , Multiprocessor scheduling : Types , Performance evaluation of the scheduling
  • 3. Contents: • Scheduling Algorithms: FIFO • Scheduling Algorithms: SJF • Scheduling Algorithms: RR • Multiprocessor Scheduling • Performance Evaluation of the Scheduling
  • 4. FIFO • First come first serve scheduling method. • Non-preemptive CPU scheduling algorithm. • A queue is maintained containing the list of processes in the CPU. • The processes are dispatched according to their arrival time at a ready queue. CPU Ready queue
  • 5. FIFO Advantages • Simple to implement • Fine for most of the batch operating systems Disadvantages • It cannot guarantee short response time. • Turnaround time is unpredictable. • Average waiting time is often quite long.
  • 6. FIFO PROCESS BURST TIME P1 4 P2 7 P3 3 P4 3 P5 5 P1 P2 P3 P4 P5 0 4 11 14 17 22
  • 7. Shortest Job First : SJF • SJF algorithm handles the process based on the length of their CPU cycle time, the process with shortest runtime is completed first. • SJF scheduling algorithm may be preemptive or non-preemptive. • It is optimal only when all the processes are available at the same time and the CPU estimates are available.
  • 8. Shortest Job First : SJF Advantages • Used frequently in long term scheduling. • It reduces average waiting time over FIFO algorithm. • It is appropriate for batch jobs for which run times are knows in advance. Disadvantages • It requires precise knowledge of how long a job or process will run which is not easily available.
  • 9. Shortest Job First : SJF PROCESS BURST TIME P1 5 P2 2 P3 6 P4 4 P2 P4 P1 P3 0 2 6 11 17
  • 10. Round Robin : RR • In RR algorithm, each process is given a limited amount of time slice and after the time expires the system allocates the CPU to next process in the ready queue. • RR is a preeemptive scheduling algorithm. • Here the ready queue is treated as a circular queue and follows FIFO scheme. • The CPU scheduler goes around the ready queue allocating the CPU to each process for given time interval.
  • 11. Round Robin : RR Advantages • It is a simple scheduling algorithm and easy to implement in software. • Round robin scheduling is fair in the sense that every process gets an equal share of the CPU. • If we know the number of processes on the run queue, we can know the worst-case response time for a process. Disadvantages • If slicing time is too low, the processor output is reduced. More time is spent on context switching. • Higher Average Waiting Time • No priority: Round-robin scheduling, like other first-come, first-served methods, doesn't give special priority to more important tasks
  • 12. Round Robin : RR PROCESS BURST TIME P1 5 P2 2 P3 6 P4 4 P3 P2 P3 P4 P1 P3 P4 P1 P3 0 2 4 6 8 10 12 14 15 17 Time Slice = 2 s
  • 13. Multiprocessor Scheduling • Scheduling is two dimensional on a multiprocessor. • Scheduling on a multiprocessor involves three issues: a. The assignment of processes to processors. b. The use of multiprogramming on individual processors. c. The actual dispatching of a process. • A key design issue for a multiprocessor scheduling is the selection of process for execution. • A more sophisticated scheduling based on priority and past usage may lead to a better performance, compared with simpler FIFO algorithm.
  • 14. Multiprocessor Scheduling • Multiprocessing environment can be achieved with the help of threads. • An application can be implemented as a set of threads, which cooperate and execute concurrently in the same address space. • Four general approaches of multiprocessor thread scheduling are: • Load sharing : Here threads are not assigned to a particular processor, when a processor is idle, it selects a thread from a global queue serving all processors. • Gang scheduling : A set of related threads is scheduled to run on a set of processors at the same time, on a one-to-one basis. • Dedicated processor scheduling : When application is scheduled, its threads are assigned to a processor. • Dynamic scheduling : No. of threads are altered dynamically by the application.
  • 15. Performance Evaluation of the Scheduling • Performance evaluation of CPU Scheduling algorithm is done by the following 3 methods: • Deterministic Modelling : It uses analytic method. It takes a particular predetermined workload and defines the performance of each algorithm for that workload. • Queuing Models : In this method, a queueing model is constructed so that queue lengths and waiting time can be predicted for the given scheduling algorithm. • Simulations : Simulations creates a model of the system, then processes statistical on real data based on which necessary evaluation is done.