retagged by
9,246 views
14 votes
14 votes
Three processes arrive at time zero with $\text{CPU}$ bursts of $16,\;20$ and $10$ milliseconds. If the scheduler has prior knowledge about the length of the $\text{CPU}$ bursts, the minimum achievable average waiting time for these three processes in a non-preemptive scheduler (rounded to nearest integer) is _____________ milliseconds.
retagged by

6 Answers

0 votes
0 votes

ANS IS 12.

HERE IN QUESTION, IT IS MENTIONED THAT “SCHEDULER HAS PRIOR KNOWLEDGE ABOUT THE LENGTH OF THE CPU BURSTS” SO IT MEANS WE HAVE TO USE SJF.

 

PS: BY MISTAKE I WROTE AVG TAT IT IS AVG WT ONLY. :)

0 votes
0 votes
For minimizing average waiting time/ maximize throughput,  SJF(shortest job first) works better for  non-preemptive.(SRTF for preemptive)

so schedule processes in increasing order of their burst time i.e. C(first),A,B(last)

now waiting will be 0ms,10ms,26ms for C,A,B respectively.

avg wait time= 36/3=12ms
Answer:

Related questions

13 votes
13 votes
5 answers
1
Arjun asked Feb 18, 2021
8,191 views
In an undirected connected planar graph $G$, there are eight vertices and five faces. The number of edges in $G$ is _________.
8 votes
8 votes
3 answers
2
Arjun asked Feb 18, 2021
10,976 views
Consider the following undirected graph with edge weights as shown:The number of minimum-weight spanning trees of the graph is ___________.