Implementation FCFS in C code to find out Waiting Time (WT) and Turn Around Time (TAT)
- Click the file fcfs.c
- Run any C compiler (Made by CodeBlocks)
- Should works fine!
Inputs:
- Number of processes (P0, P1...)
- Brust time of each processes
Processing:
a. calcutaing values
wt[i+1] = bt[i]+wt[i]
tat[i] = wt[i] + bt[i]
b. Calculating average
avg_wt+=wt[i]
avg_tat+=tat[i]