in Operating System
1,512 views
2 votes
2 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 ?

A. 2.048 sec

B. 0.216 sec

C. 0.108 sec

D. 0.100 sec
in Operating System
1.5k views

3 Comments

0
0

@Sambhrant Maurya please paste the answer here. I am not able to access that answer

0
0

@Gurdeep Saini

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.

1
1

1 Answer

0 votes
0 votes
is it c option answer?
by

1 comment

i think b option is correct 0.216 sec
0
0

Related questions