...
Question 8883 – ISRO CS 2020
December 26, 2023
Question 8911 – ISRO CS 2020
December 26, 2023
Question 8883 – ISRO CS 2020
December 26, 2023
Question 8911 – ISRO CS 2020
December 26, 2023

Question 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.
A
0 < t < 3
B
t = 0
C
t <= 3
D
3 < t < 8
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!