retagged by
647 views
1 votes
1 votes
A program is running on a computer system in round-robin CPU scheduling. The size of the program is $100$$K$. The hard disk has a transfer rate of $1$ $megabyte$ $per second.$

Assume that there are no head seeks and average latency is $8$ $milliseconds$. When a program is to be executed, it needs to be brought into memory from the disk (where it resides).

The acceptable time quantum for effective $CPU$ utilization could be  _________ $seconds$.
retagged by

1 Answer

Best answer
1 votes
1 votes
Whenever a program is to be executed, it needs to be brought into the memory from disk, where it is residing.

When the program needs to be swapped out to disk, again some time is required.
For effective CPU utilization, the time quantum must be substantially greater than the context switch time.

Time required to transfer process from memory =  100K/1000K = 1/10 seconds = 100 milliseconds

Add avg. latency to  process transfer time becomes 108 milliseconds for one way transfer between disk and memory for the given program. Now the time required two way transfer is 216 ms. Thus, for efficient CPU utilization, time quantum should be substantially greater than 216 ms. Which is equal to is 0.216  sec.
selected by
Answer:

Related questions