Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is units if the corresponding memory page is available in memory, and units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is units.
Which one of the following is the correct expression for the page fault rate experienced by the process.
View worked solution
Answer: B
To find the page fault rate, we can set up the equation for the effective memory access time ().
Let be the page fault rate (the probability that a memory access results in a page fault). Then, the probability that a page is found in memory (a page hit) is .
We are given:
- Memory access time on page hit =
- Memory access time on page fault =
- Average (effective) memory access time =
The formula for the average memory access time is:
Now, we solve for :
Thus, the correct expression for the page fault rate is , which corresponds to option B.
Free practice · Your answers on this page are not saved.
