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.
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