Professional Documents
Culture Documents
Prepared By-
RIFAT-IBN-ALAM
ID: 21-92099-2
Section: A
ADVANCED OPERATING SYSTEM [MsCS]
Faculty: DR. AFROZA NAHAR
ROUND ROBIN
Once a process is executed for a given time period, it is preempted, and other process executes for the
P3 2
2 0
6 4 2
TAT= CT - AT
WT= TAT - BT
P4 4 1 0 9 5 4
Ready Queue P1 P2 P3 P1 P4 P2 P1
Gantt Chart P1 P2 P3 P1 P4 P2 P1
0 2 4 6 8 9 11
12
The average waiting time = Total waiting time / No. of Processes
= (7+6+2+4) / 4 = 4.75
ALPINE SKI HOUSE
ADVANTAGES
Each process is served by the CPU for a fixed time quantum, so all processes are given the same
priority.
Starvation doesn't occur because for each round robin cycle, every process is given a fixed time to
execute. No process is left behind.
DISADVANTAGES
If slicing time of OS is low, the processor output will be reduced.
Its performance heavily depends on time quantum.