Round Robin Scheduling
Round Robin Scheduling
h>
int main() {
scanf("%d", &n);
scanf("%d", &bu[i]);
scanf("%d", &t);
max = bu[0];
max = bu[i];
if(bu[i] != 0) {
if(bu[i] <= t) {
temp += bu[i];
bu[i] = 0;
} else {
// Process doesn't complete, reduce its burst time by the time slice
bu[i] -= t;
temp += t;
att += tat[i];
awt += wa[i];
// Display the burst time, waiting time, and turnaround time for each process
return 0;
1 10 10 20
2 8 15 23
3 7 18 25