Professional Documents
Culture Documents
Lab 5 - cs604
Lab 5 - cs604
Write a program in C to implement FSFS scheduling algorithm. Given the list of Processes and
their burst time, calculate waiting time and turnaround time for each process. Also calculate
average waiting time and average turnaround time. For example, the list of processes and their
CPU burst time are as follows:
Assume that all the processes arrive at time 0 in sequence P0, P1, P2 P3
Solution:
#include <stdio.h>
int main(){
int avgWTime = 0 ;
int avgtATime = 0 ;
wTime[0] = 0 ;
} // end of main()