• edited by
727 views
0 0 votes
Consider 3 processes A, B and C to be scheduled as per the SJF (Pre-emptive). The process ‘A’ is known to be scheduled first and when ‘A’ has been running for 4 units of time, the process ‘C’ has arrived. The process ‘C’ has run for 2 unit of time, then the process ‘B’ has arrived and completed running in ‘3’ units of time. Then what could be the minimum burst times of the processes A and C?

1 Answer

0 0 votes

 

First process A arrives and runs for 4 units. Then process C arrives and runs for 2 units as BT(burst time) of C< A and B came and runs till execution(3 units) as BT of B < C. 

Process C executes as it has less remaining time than A. then Process A executes.

BT of C = 2 + (B + 1) = 2 + (3 + 1) = 6 units

BT of A = 4 + (C + 1) = 4 + (6 + 1) = 11 units

Position:
Show:

Related questions

1 1 vote
0 0 answers
494
494 views
SeemaTanwar asked Dec 24, 2017
494 views
22. Given the jobs with the following characteristics:job A: 5ms CPU , 25 ms IO , 5 ms CPUjob B: 20ms CPU, 15 ms IOjob C: 40 ms cpuDetermine the turnaround time, waiting ...
1 1 vote
2 2 answers
1.9k
1.9k views
Purple asked Jan 13, 2017
1,895 views
Calculate the Exponential averaging for the $\text{SJF}$ with $T_{1}=10,\alpha = 0.5$ and previous runs as $8,7,4,16$$\text{(Give the answer correct to one decimal place)...
0 0 votes
2 2 answers
1.7k
1.7k views
Na462 asked Jul 12, 2018
1,738 views