Gate2007_55

An operating system uses Shortest Remaining Time first (SRT) process scheduling algorithm. Consider the arrival times and execution times for the following processes:

Process Execution Time Arrival Time
P1 20 0
P2 25 15
P3 10 30
P4 15 45

What is the total waiting time for process P2 ?

(A) 5      (B) 15         (C) 40       (D) 55

 

Answer

Discuss

0Comment