in Operating System edited by
386 views
0 votes
0 votes

What should be less time consuming approach for such type of questions

in Operating System edited by
386 views

4 Comments

Suppose burst times of A, B and C are $T_A,T_B,T_C$ respectively.
According to ques.-
$T_A = 6+x$. (Here $x$ is A's remaining time .)
A ran for 6-time units and got preempted and B got CPU)
This is possible only when $x > T_B$
Now,
$T_B = 2+y$. (Here $y$ is B's remaining time .)
B ran for 2-time units and got preempted and C got CPU)
This is possible only when $y > T_C$

So we have-
$T_C = 4\\T_B=2+y\\y >T_C \ so \ y >4\\T_A=6+x\\
x >T_B$
So minimum value of y can be 5 so minimum value of $T_B=2+5=7.$
 Minimum value of x can be 8 so minimum value of $T_A=6+8=14$
1
1

If D is the correct option then TA-6 =5 and TB=7 (given) i.e. remaining time of A is less than B's BT. Then how could B have pre empted A?

0
0
yes Non of the options are correct
0
0

Please log in or register to answer this question.

Related questions