Answer on Question #45883, Programming, Other
Problem.
In demand paging 200ns is required to satisfy a memory request if the page is in the memory. If the page is not in memory it takes 7ms if free frame is available, 15ms if page to be swapped. Calculate the Effective Access time if page fault rate is 5% and 60% of time the page has to be replaced.
Solution.
1 millisecond = 1000000 nanoseconds.
EAT (Effective Access Time)
= (1 - Fault rate)(Memory access time) + Fault rate(Memory access time + (1 - Rate of time for page swapping)(Frame is available time) + (Rate of time for page swapping)(Page to be swapped time))
Hence EAT = 0.95 · 200 + 0.05(200 + (1 - 0.6) · 7 · 10⁶ + 0.6 · 15 · 10⁶) = 200 + 140000 + 450000 = 590200 ns.
Answer: 590200 ns.