Best Math Formula website. Search anything about Math Formula in this website.
how to calculate the average waiting time for fcfs. The average waiting time is 3 16 9 0 4 70 ms. For the above given proccesses first P1 will be provided with the CPU resources Hence waiting time for P1 will be 0.
Reading For Lecture 10 from www.u-aizu.ac.jp
First come first served. Similarly waiting time for process P3 will be execution time of P1 execution time for P2 which will be 21 3 ms 24 ms. 6- Find average waiting time total_waiting_time no_of_processes.
My reasoning for thinking this is that systemTime - arrivalTime is the time the process has been waiting in the fcfs queue to use the CPU or is this wrong And for turnaround time I was thinking something like.
0 10 12 24 24 4 6. If we were using the FCFS scheduling then the average waiting time would be 1025 ms. The average waiting time is 3 16 9 0 4 70 ms. First in first out FIFO also known as first come first served FCFS is the simplest scheduling algorithm.