Gate CS-2007 Question Paper With Solutions

Q. 69  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: (B)

Explanation:

Gate CS-2007 Question Paper With Solutions

Learn More:   Gate EC-2014 - 2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here