Let the page fault service time be milliseconds(ms) in a computer with average memory access time being nanoseconds (ns). If one page fault is generated every memory accesses, what is the effective access time for memory?
View worked solution
Answer: B
The effective memory access time () in a demand-paging system is calculated using the formula:
Where:
- is the page fault rate (probability of a page fault).
- is the memory access time when no page fault occurs.
- is the page fault service time.
Step-by-step Calculation:
-
Identify the given values and unify the units to nanoseconds ():
- Memory access time () =
- Page fault service time () =
- Page fault rate () =
- Substitute the values into the formula:
- Simplify the expression:
Thus, the effective memory access time is approximately .
Free practice · Your answers on this page are not saved.
