Add os/round-robin: Round Robin scheduler in C++ and C with Gantt chart, quantum sweep and captured output
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
Enter No of Processes:
|
||||
Enter Burst Time of Process 1:
|
||||
Enter Burst Time of Process 2:
|
||||
Enter Burst Time of Process 3:
|
||||
Enter Burst Time of Process 4:
|
||||
Enter Burst Time of Process 5:
|
||||
Enter Time Quantum:
|
||||
|
||||
Entered Data
|
||||
ProcesstBurst Time
|
||||
1 10
|
||||
2 29
|
||||
3 3
|
||||
4 7
|
||||
5 12
|
||||
|
||||
Result of Round Robin Scheduling
|
||||
PNo BT WT TT
|
||||
1 10 0 10
|
||||
2 29 32 61
|
||||
3 3 20 23
|
||||
4 7 23 30
|
||||
5 12 40 52
|
||||
Average Waiting Time : 23
|
||||
Average Turnaround Time : 35.2
|
||||
Reference in New Issue
Block a user