• retagged by
1,550 views
9 9 votes

Consider a program to be run on a computer system in round-robin CPU scheduling. The size of the program is $100K$. It is given that 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. What could be the acceptable time quantum for effective CPU utilization ?

  1. $2.048$ sec
  2. $0.216$ sec
  3. $0.108$ sec
  4. $0.100$ sec

1 Answer

Best answer
13 13 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 , it becomes 100 +8= 108 milliseconds for one way transfer between disk and memory for the given program. The time required two way transfer is 216 ms. Thus, for efficient CPU utilization, time quantum should be substantially greater than 216 ms. The acceptable answer from options is 2.048 sec.
• selected by
Answer:
Position:
Show:

Related questions

2 2 votes
1 answers 1 answer
1.0k
1.0k views
Bikram asked Dec 26, 2016
1,025 views
A uniprocessor system has two resources of type A and B shared by four processes. There are $4$ units of each resource type available after allocation. Let “current” indi...
1 1 vote
1 answers 1 answer
943
943 views
Bikram asked Dec 26, 2016
943 views
The arrival time, burst time and priorities of five processes are given as:$\begin{array}{|c|c|c|c|} \hline \text{Process} & \text{Arrival Time} & \text{Burst time} & \te...
2 2 votes
1 answers 1 answer
653
653 views
Bikram asked Dec 26, 2016
653 views
Consider the following 3 processes with 3 binary semaphores with initial values $S_{0}=0, S_{1}=0, S_{2}=1$$$ \begin{array}{|c|c|c|} \hline \textbf{P} & \textbf{Q} & \tex...
2 2 votes
3 answers 3 answers
3.2k
3.2k views
Bikram asked Dec 26, 2016
3,177 views
In a paged memory, the page hit ratio is $0.35$. The time required to service the page fault is $100$ ns. Time required to access a page in primary memory is $10$ ns.The ...