recategorized by
6,077 views
1 votes
1 votes

Suppose that the number of instructions executed between page fault is directly proportional to the number of page frames allocated to a program. If the available memory is doubled, the mean interval between the page faults is also doubled. Further, consider that a normal instruction takes one microsecond, but if a page fault occurs, it takes 2001 microseconds. If a program takes 60 sec to run, during which time it gets 15,000 page faults, how long would it take to run twice as much memory were available?

  1. 60 sec
  2. 30 sec
  3. 45 sec
  4. 10 sec
recategorized by

2 Answers

5 votes
5 votes
ans should be C   45 sec

Normal instruction takes 1 micro second 10^-6 sec

instruction with page fault takes 2001 micro seconds so p.f take 2000 microsecond

now given program takes 60 sec  and there were 15000 p.f  

so time taken by page faults= 15000x2000 micro seconds=30 sec

rest 30 sec are consumed by program execution

if  memory is doubled than the mean interval between the page faults is also doubled(and hence p.f rate will be reduced by half) so when earlier 30 sec were needed  by program instructions  and 30 sec of p.f

now program execution takes 30 sec  and  p.f will take 15 sec(15000x2000x10^-3)/2

so total time =30+15 =45 sec
3 votes
3 votes
60sec = n * 1us + 15000*2000us

So n= (60-30)sec/1us = 30*10^ 6 instructions

Now memory is doubled...so page faults will be half...15000/2 = 7500

So = 30 * 10^6 * 1us + 7500 *2000us

= 30sec + 15 sec

= 45 sec
Answer:

Related questions

2 votes
2 votes
1 answer
1
go_editor asked Aug 8, 2016
2,800 views
In Unix, the login prompt can be changed by changing the contents of the file_____contrabinitgettydefsinittab
2 votes
2 votes
1 answer
3
go_editor asked Aug 8, 2016
4,868 views
Consider a disk with 16384 bytes per track having a rotation time of 16 msec and average seek time of 40 msec. What is the time in msec to read a block of 1024 bytes from...
6 votes
6 votes
1 answer
4
go_editor asked Aug 8, 2016
9,436 views
A virtual memory has a page size of $\textsf{1K}$ words. There are eight pages and four blocks. The associative memory page table contains the following entries :$\begin{...