SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
Operating Systems Laboratory
Department: CSE
Course Code: CSE 4510
Section: E
Trimester: Fall 2023
Members
Course Teacher : Gourab Saha
Md. Abdur Rahman 011202260
Shojib Talukder 011201345
Round Robin Scheduling
The Round-robin scheduling algorithm is a kind of
preemptive First come, First Serve CPU Scheduling
algorithm where each process in the ready state gets the
CPU for a fixed time in a cyclic way (turn by turn). It is the
oldest scheduling algorithm, which is mainly used for
multitasking.
How Does It Works?
❏ In the RR algorithm, a fixed time quantum is assigned to each process in the ready queue
❏ If the process completes its execution within the time quantum, it is removed from the queue
❏ If not, it is placed back in the queue, and the next process in the queue is given a chance to
execute. This process continues until all processes in the queue have executed.
Implementation
Process Arrival Time Burst Time
P0 0 3
P1 2 5
P2 3 1
TIME SLICE = 2
Process Arrival Time Burst Time
P0 0 3 1
P1 2 5
P2 3 1
Implementation
P0
0 2 4 5 6 8 9
Process Arrival Time Burst Time
P0 0 1
P1 2 5 3
P2 3 1
Implementation
P0 P1
0 2 4 5 6 8 9
Process Arrival Time Burst Time
P0 0 1
P1 2 3
P2 3 1 0
Implementation
P0 P1 P2
0 2 4 5 6 8 9
Process Arrival Time Burst Time
P0 0 1 0
P1 2 3
Implementation
P0 P1 P2 P0
0 2 4 5 6 8 9
Process Arrival Time Burst Time
P1 2 3 1
Implementation
P0 P1 P2 P0 P1
0 2 4 5 6 8 9
Process Arrival Time Burst Time
P1 2 1 0
Implementation
P0 P1 P2 P0 P1 P1
0 2 4 5 6 8 9
PERFORMANCE
❏ ResponseTimeAVG = 0.33
❏ WaitingTimeAVG = 2.33
❏ TurnAroundTime = 5.33
PERFORMANCE COMPARISON
Algorithms WaitingTimeavg ResponseTimeage
FCFS 2 2
SJF (preemptive) 0.66 0.66
SJF (non-preemptive) 0.66 0.66
RoundRobin 2.23 0.33
ADVANTAGE
❏ No starvation problem
❏ No convoy effect
❏ Fair allocation of CPU
❏ Best average response time *
DISADVANTAGE
❏ Not ideal where process priority are important
❏ Higher context switching overhead if sliced time is low
❏ Doesn’t have optimal average waiting time
❏ Difficult to find a correct time quantum
THANK YOU

Contenu connexe

Similaire à RoundRobin _ OS_LAB.pptx

Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithmBinal Parekh
 
Ch6: CPU Scheduling
Ch6: CPU SchedulingCh6: CPU Scheduling
Ch6: CPU SchedulingAhmar Hashmi
 
Ch6 CPU Scheduling galvin
Ch6 CPU Scheduling galvinCh6 CPU Scheduling galvin
Ch6 CPU Scheduling galvinShubham Singh
 
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...Shanmuganathan C
 
CPU scheduling
CPU schedulingCPU scheduling
CPU schedulingAmir Khan
 
Operating system
Operating systemOperating system
Operating systemraeesa khan
 
Process management in os
Process management in osProcess management in os
Process management in osMiong Lazaro
 
Galvin-operating System(Ch6)
Galvin-operating System(Ch6)Galvin-operating System(Ch6)
Galvin-operating System(Ch6)dsuyal1
 
Operating system
Operating systemOperating system
Operating systemLovly Angel
 
Aminullah Assagaf_P14-Ch.17_Scheduling-32.pptx
Aminullah Assagaf_P14-Ch.17_Scheduling-32.pptxAminullah Assagaf_P14-Ch.17_Scheduling-32.pptx
Aminullah Assagaf_P14-Ch.17_Scheduling-32.pptxAminullah Assagaf
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-schedulingNazir Ahmed
 
Operating Systems CPU Scheduling Process
Operating Systems CPU Scheduling ProcessOperating Systems CPU Scheduling Process
Operating Systems CPU Scheduling ProcessChandrakantDivate1
 
Unit iios process scheduling and synchronization
Unit iios process scheduling and synchronizationUnit iios process scheduling and synchronization
Unit iios process scheduling and synchronizationdonny101
 

Similaire à RoundRobin _ OS_LAB.pptx (20)

Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithm
 
Ch6: CPU Scheduling
Ch6: CPU SchedulingCh6: CPU Scheduling
Ch6: CPU Scheduling
 
Ch6 CPU Scheduling galvin
Ch6 CPU Scheduling galvinCh6 CPU Scheduling galvin
Ch6 CPU Scheduling galvin
 
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
AlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorithmsAlgorit...
 
CPU scheduling
CPU schedulingCPU scheduling
CPU scheduling
 
Operating system
Operating systemOperating system
Operating system
 
Process management in os
Process management in osProcess management in os
Process management in os
 
Galvin-operating System(Ch6)
Galvin-operating System(Ch6)Galvin-operating System(Ch6)
Galvin-operating System(Ch6)
 
Operating system
Operating systemOperating system
Operating system
 
CPU Scheduling.pdf
CPU Scheduling.pdfCPU Scheduling.pdf
CPU Scheduling.pdf
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
 
U2-LP2.ppt
U2-LP2.pptU2-LP2.ppt
U2-LP2.ppt
 
Os module 2 ba
Os module 2 baOs module 2 ba
Os module 2 ba
 
ch6.ppt
ch6.pptch6.ppt
ch6.ppt
 
Aminullah Assagaf_P14-Ch.17_Scheduling-32.pptx
Aminullah Assagaf_P14-Ch.17_Scheduling-32.pptxAminullah Assagaf_P14-Ch.17_Scheduling-32.pptx
Aminullah Assagaf_P14-Ch.17_Scheduling-32.pptx
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Operating Systems CPU Scheduling Process
Operating Systems CPU Scheduling ProcessOperating Systems CPU Scheduling Process
Operating Systems CPU Scheduling Process
 
Unit iios process scheduling and synchronization
Unit iios process scheduling and synchronizationUnit iios process scheduling and synchronization
Unit iios process scheduling and synchronization
 

Dernier

Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdfKamal Acharya
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGKOUSTAV SARKAR
 
15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon15-Minute City: A Completely New Horizon
15-Minute City: A Completely New HorizonMorshed Ahmed Rahath
 
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...MohammadAliNayeem
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfJNTUA
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisDr.Costas Sachpazis
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.MdManikurRahman
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfJNTUA
 
EMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentationEMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentationAmayJaiswal4
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsSheetal Jain
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Prakhyath Rai
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineJulioCesarSalazarHer1
 
Circuit Breaker arc phenomenon.pdf engineering
Circuit Breaker arc phenomenon.pdf engineeringCircuit Breaker arc phenomenon.pdf engineering
Circuit Breaker arc phenomenon.pdf engineeringKanchhaTamang
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)NareenAsad
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdfKamal Acharya
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfJNTUA
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...Roi Lipman
 

Dernier (20)

Insurance management system project report.pdf
Insurance management system project report.pdfInsurance management system project report.pdf
Insurance management system project report.pdf
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon15-Minute City: A Completely New Horizon
15-Minute City: A Completely New Horizon
 
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
EMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentationEMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentation
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
Circuit Breaker arc phenomenon.pdf engineering
Circuit Breaker arc phenomenon.pdf engineeringCircuit Breaker arc phenomenon.pdf engineering
Circuit Breaker arc phenomenon.pdf engineering
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdf
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 

RoundRobin _ OS_LAB.pptx

  • 1. Operating Systems Laboratory Department: CSE Course Code: CSE 4510 Section: E Trimester: Fall 2023 Members Course Teacher : Gourab Saha Md. Abdur Rahman 011202260 Shojib Talukder 011201345
  • 2. Round Robin Scheduling The Round-robin scheduling algorithm is a kind of preemptive First come, First Serve CPU Scheduling algorithm where each process in the ready state gets the CPU for a fixed time in a cyclic way (turn by turn). It is the oldest scheduling algorithm, which is mainly used for multitasking.
  • 3. How Does It Works? ❏ In the RR algorithm, a fixed time quantum is assigned to each process in the ready queue ❏ If the process completes its execution within the time quantum, it is removed from the queue ❏ If not, it is placed back in the queue, and the next process in the queue is given a chance to execute. This process continues until all processes in the queue have executed.
  • 4. Implementation Process Arrival Time Burst Time P0 0 3 P1 2 5 P2 3 1 TIME SLICE = 2
  • 5. Process Arrival Time Burst Time P0 0 3 1 P1 2 5 P2 3 1 Implementation P0 0 2 4 5 6 8 9
  • 6. Process Arrival Time Burst Time P0 0 1 P1 2 5 3 P2 3 1 Implementation P0 P1 0 2 4 5 6 8 9
  • 7. Process Arrival Time Burst Time P0 0 1 P1 2 3 P2 3 1 0 Implementation P0 P1 P2 0 2 4 5 6 8 9
  • 8. Process Arrival Time Burst Time P0 0 1 0 P1 2 3 Implementation P0 P1 P2 P0 0 2 4 5 6 8 9
  • 9. Process Arrival Time Burst Time P1 2 3 1 Implementation P0 P1 P2 P0 P1 0 2 4 5 6 8 9
  • 10. Process Arrival Time Burst Time P1 2 1 0 Implementation P0 P1 P2 P0 P1 P1 0 2 4 5 6 8 9
  • 11. PERFORMANCE ❏ ResponseTimeAVG = 0.33 ❏ WaitingTimeAVG = 2.33 ❏ TurnAroundTime = 5.33
  • 12. PERFORMANCE COMPARISON Algorithms WaitingTimeavg ResponseTimeage FCFS 2 2 SJF (preemptive) 0.66 0.66 SJF (non-preemptive) 0.66 0.66 RoundRobin 2.23 0.33
  • 13. ADVANTAGE ❏ No starvation problem ❏ No convoy effect ❏ Fair allocation of CPU ❏ Best average response time *
  • 14. DISADVANTAGE ❏ Not ideal where process priority are important ❏ Higher context switching overhead if sliced time is low ❏ Doesn’t have optimal average waiting time ❏ Difficult to find a correct time quantum