Uploaded by xipos84366

Assignment 4

advertisement
Assignment - IV (A4)
Due: Monday, Oct 11, 2021 11:59 pm IST
1. Write a C program to simulate the FIFO CPU scheduling algorithm.
2. Write a C program to simulate a non-preemptive shortest job first (SJF) CPU scheduling
algorithm.
Input - The program should take process ID, arrival time, and burst time of 5 processes from the
user.
Output - The expected output is a Gantt chart of the schedule and average waiting time and the
average turnaround time of those processes.
Download