06 58 Os
06 58 Os
06 58 Os
Roll No : 58
Assignment 6
Q. Write a C Program to implement Round Robin Algorithm.
#include <stdio.h>
#include <stdlib.h>
struct process {
int pid;
int at;
int bt;
int ct;
int tat;
int wt;
int st; // Start time
int rt; // Response time
int rbt; // Remaining burst time
};
int main() {
int n, tq;
sort(p, n);
avg_TAT /= (float)n;
avg_WT /= (float)n;
avg_RT /= (float)n;
free(p);
return 0;
}
Output: