Question 8883 – ISRO CS 2020
December 26, 2023Question 8911 – ISRO CS 2020
December 26, 2023Question 8884 – ISRO CS 2020
Three CPU-bound tasks with execution times of 15, 12 and 5 time units respectively arrive at times , t and 8, respectively. If the operating system implements a shortest remaining time first scheduling algorithm, what should be the value of t to have 4 context switches?
Ignore the context switches at time 0 and at the end.
Correct Answer: A
Question 15 Explanation:
In the question it asked to find the arrival time (t) of process (P2), such that the number of context switches is exactly 4 using SRTF scheduling algorithm. It can be simply verified by taking t=1 and t=2, which causes 4 context switches. So, 0< t < 3. At, t=0 and and t >=3, no of context switches are not exactly 4.
0 < t < 3
t = 0
t <= 3
3 < t < 8
Subscribe
Login
0 Comments