in Operating System recategorized by
16,210 views
47 votes
47 votes

The sequence __________ is an optimal non-preemptive scheduling sequence for the following jobs which leaves the CPU idle for ________ unit(s) of time.$$\small \begin{array}{|c|c|c|} \hline  \textbf{Job} & \textbf{Arrival Time} & \textbf{Burst Time} \\\hline 1 & 0.0 & 9 \\\hline  2 & 0.6 & 5 \\\hline 3 & 1.0 & 1 \\\hline \end{array}$$

  1. $\{3, 2, 1\}, 1$
  2. $\{2, 1, 3\}, 0$
  3. $\{3, 2, 1\}, 0$
  4. $\{1, 2, 3\}, 5$
in Operating System recategorized by
16.2k views

5 Answers

1 vote
1 vote
SJF is best among all non-preemptive methods with its disadvantages. SJF gives less average waiting time and less Turn around time than others and more

in all scheduling algorithms SRJF(i.e SJF with preemption )gives optimal av. waiting time and av. Turn around time

So we will use SJF here to get optimal

3,2,1 will be the sequence but from 0 to 1 CPU will be idle
edited by
by

1 comment

But if in sjf we don't have any idle time as here the first process arrives immediately at 0s so if we use sfj algo we should be processing job S1 instead we are creating an optimal sequence of our own
0
0
Answer:

Related questions