UGC-NET | UGC NET CS 2016 Aug – II | Question 40
Consider three CPU intensive processes P1, P2, P3 which require 20, 10 and 30 units of time, arrive at times 1, 3 and 7 respectively. Suppose operating system is implementing Shortest Remaining Time first (preemptive scheduling) algorithm, then _____ context switches are required (suppose context switch at the beginning of Ready queue and at the end of Ready queue are not counted).
(A) 3
(B) 2
(C) 4
(D) 5
Answer: (A)
Explanation:
There are 3 context switch.
So. option (A) is correct.
Quiz of this Question