729 views
2 votes
2 votes



please explain this anyone

1 Answer

Best answer
5 votes
5 votes
When Time quantum is greater than or equal to context switch time, in that case we say that CPU is being effectivel utilized.

Because, RR favours CPU bound processes and a CPU-bound process runs for all its time slice and is put back into the ready queue rather than I/O bound processes because an I/O bound process uses the CPU for a time less than the time quantum before it is blocked for an I/O . Hence, it is always a good approach to make TQ larger than the time required to handle the clock interrupt and dispatching but should not be much higher.

Now, how the context switch occurs for a program residing on a HD ? It is in the form of swap in and swap out

So, for better CPU utilization TQ >= Swap In + Swap Out

=> Swap In = Time taken to transfer the program + average latency

=> Swap In = 200kb / 2mbps + 10 ms

=> Swap In = 110 ms

Hence, Minimum TQ for effective CPU utilization = 110 * 2 = 220 ms.

Related questions

0 votes
0 votes
1 answer
1
Anusha Motamarri asked Nov 21, 2016
620 views
A packet of 10 bulbs is known to include 2 bulbs that are defective. If 4 bulbs are chosen randomly and tested, probability for finding not more than 1 defective bulb is_...
0 votes
0 votes
0 answers
2
Nishant Arora asked Dec 13, 2016
390 views
i have used hypergeometric distribution but MADE Easy have used binomial theorem..we should use binomial when replacement are done na?my ans.0.6made easy ans:0.81
3 votes
3 votes
3 answers
3
santhoshdevulapally asked Nov 28, 2016
564 views
1 votes
1 votes
1 answer
4