Round Robin
Round Robin
Round Robin
ROUND ROBIN:
#include<stdio.h>
int main() {
int i, j, n, bu[10], wa[10], tat[10], t, ct[10], max;
float awt = 0, att = 0, temp = 0;
printf("Onkar lonsane Roll No = 28");
max = bu[0];
for(i = 1; i < n; i++) {
if(max < bu[i])
max = bu[i];
}
return 0;
}
Output:
/tmp/cLPP1KUzvE.o
Onkar lonsane Roll No = 28
Enter the number of processes: 2
Enter Burst Time for Process 1: 4
Enter Burst Time for Process 2: 6
Enter the size of time slice: 2