Assume a system in which the typical interaction time is 90 milliseconds. The CPU scheduler uses round-robin scheduling. Why is it not a good idea to set the quantum length to be 50 milliseconds in this system?
It is given that the typical interaction time is 90 milliseconds. And the given time quatum is 50 milliseconds. You must know that if time quantum is smaller in comaprison to typical interaction time, this will lead to frequent unnecessary context switches resulting in alot of overhead and wastage of CPU time. This will also result in a less throughput. So the quantum length must be greater than the typical interaction time.
Also, the time quantum must not be too large. In that case, the behavior of Round Robin scheduling will tend to FCFS scheduling.(In this case process release CPU voluntarily)
Get Answers For Free
Most questions answered within 1 hours.