Context switches - Example - Operating System
Q. Three CPU intensive processes requires 10, 20 and 30 time units and arrive at times 0, 2 and 6 respectively. The operating system implements a shortest remaining time first scheduling algorithm. Considering that the context switches at time zero and at the end are not counted the number of context switches are needed is ______.- Published on 27 Aug 15a. 4
b. 3
c. 2
d. 1
ANSWER: 2