About: This is a basic implementation of the First come first serve (FCFS) scheduling algorithm of the Operating System
Enter Arival Time FOR PID 0 => 0 Enter Burst Time FOR PID 0 => 2 Enter Arival Time FOR PID 1 => 1 Enter Burst Time FOR PID 1 => 6 Enter Arival Time FOR PID 2 => 2 Enter Burst Time FOR PID 2 => 4 Enter Arival Time FOR PID 3 => 3 Enter Burst Time FOR PID 3 => 9 Enter Arival Time FOR PID 4 => 6 Enter Burst Time FOR PID 4 => 12
PID AT BT CT TAT WT
0 0 2 2 2 0
1 1 6 8 7 1
2 2 4 12 10 6
3 3 9 21 18 9
4 6 12 33 27 15
Average Waiting Time = 6.20