![]() ![]() Hence, the Waiting time for process P4 will be 3msĪfter executing process P2 and P4 the CPU will be then allocated to the next smallest process P3 which has the CPU burst time of 6ms. Hence, the Waiting time for process P2 will be 0msĪfter the process P2 has been completely executed then the CPU will be allocated to the next smallest process P4 which has CPU burst time of 5ms. The CPU burst time for process P4 is 5ms.Īs the CPU burst time of process P2 is smaller than that of all the other processes, the CPU will be allocated to P2. Outtextxy( 80, 460, "Do Not Press Any Key! This screen will be cleared automatically in 10s.") Printf( " \nAverage turn around time : %d", avg_turnaround_time / no) Printf( " \n \nAverage waiting time : %d", avg_waiting_time / no) Printf( " \nTurn around time for process P%d : %d \n", process, cpuburst temp_tat) Printf( " \nWaiting time for process P%d : %d", process, cpuburst temp_wt) Printf( " \nEnter CPU Burst time for process P%d : ", i) Printf( " \nEnter the number of Processes : ") Printf( " \nShortest Job First Process Scheduling : ") Initgraph(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |