edited by
465 views
0 votes
0 votes

Consider 3 processes A, B, and C to be scheduled as per SRTF scheduling. The process A is known to be scheduled first and when A has been running for 7 units of time the process C has arrived. The process C has run for 1 unit of time, then the process B has arrived and completed running for 2 units of time. Then what could be the minimum burst time of processes A and C?

  1. 11, 3
  2. 12,3
  3. 11,4
  4. 12,4
edited by

2 Answers

Best answer
3 votes
3 votes

Let Burst time of A, B, C are x, y, z

when A has been running for 7 units of time the process C has arrived

$x-7 > z$

The process C has run for 1 unit of time, then the process B has arrived

$z-1>y$

and completed running for 2 units of time

which means $y = 2$

Now, $z-1>y$ 

$z-1>2$

$z=4$

$x-7>z$

$x-7>4$

$x=12$

So, the minimum Burst Time of A and C is 12, 4 respectively,

Answer> $D$

selected by
1 votes
1 votes
Let BT for A is x

Let BT for C is y

As A runs for 7 units, remaining time of A is x-7

As it is SRTF and the process C preempts A therefore, x-7>y

C runs for 1 unit of time,then B preempts C

similarly,  y-1>2

y is greater than 3 ,y is 4 than x is 12

ANS: d
Answer:

Related questions

0 votes
0 votes
3 answers
1
Chaitanya Kale asked Sep 22, 2022
663 views
If we are using non-preemptive CPU scheduling then can there be process state transition from running to ready state?
1 votes
1 votes
1 answer
2
iarnav asked Jan 12, 2022
405 views
Does non preemptive CPU scheduling needs hardware support.kindly explain.
1 votes
1 votes
1 answer
4
Ram Ahuja asked Feb 13, 2019
2,769 views
In which of the following case CPU utilization will be higher?(a) If all the processes are I/O bound(b) Is all the processes are equally CPU bound and I/O bound(c) If all...