recategorized by
26,752 views
67 67 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$

7 Answers

Best answer
74 74 votes

Answer is (A).
Here, in option B and C they have given CPU idle time is $0$ which is not possible as per schedule (B) and (C).
So, (B) and (C) are eliminated.

Now, lets see (A) and (D):

For (A),

So, idle time is between $0$ and $1$ which is $1$ in case of option (A).

For option (D),

We can see that there is no idle time at all, but in option given idle time is $5$, which is not matching with our chart so option (D) is eliminated.

Therefore, the correct sequence is option (A).

edited by
22 22 votes

(D) CPU idle time will be 0.
(C) CPU idle time will be 1.
(B) CPU Idle Time will be 0.6
(A) CPU idle time will be 1.

Hence, (A) is correct answer!

9 9 votes
Assuming optimal is with respect to the total waiting time (a) is correct.

Total waiting times are

(a) 0 + 1.4 + 7 = 8.4, idle time = 1

(b) 0 + 5.6 + 14.6 = 20.1, idle time = 0.6

(c) 0 + 1.4 + 7 = 8.4, idle time = 1

(d) 0 + 9 + 14 = 23, idle time = 0

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/5_CPU_Scheduling.html
1 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
Answer:
Position:
Show:

Related questions

51 51 votes
5 answers 5 answers
20.5k
20.5k views
Kathleen asked Oct 8, 2014
20,530 views
Which scheduling policy is most suitable for a time shared operating system?Shortest Job FirstRound RobinFirst Come First ServeElevator
34 34 votes
5 answers 5 answers
15.6k
15.6k views
Kathleen asked Oct 8, 2014
15,567 views
In a virtual memory system the address space specified by the address lines of the CPU must be _____ than the physical memory size and ____ than the secondary storage siz...
78 78 votes
7 answers 7 answers
24.1k
24.1k views
Kathleen asked Oct 8, 2014
24,140 views
The address sequence generated by tracing a particular program executing in a pure demand based paging system with $100$ records per page with $1$ free main memory frame ...
28 28 votes
2 answers 2 answers
137k
137k views
Kathleen asked Oct 8, 2014
136,670 views
The head of a moving head disk with $100$ tracks numbered $0$ to $99$ is currently serving a request at track $55$. If the queue of requests kept in FIFO order is $$10, 7...