سوال ۹۸ کنکور ارشد مهندسی کامپیوتر ۱۴۰۲
سیستمی با میانگین زمان سرویس وقفه خطاینقص صفحه ۲۵ میلیثانیه و زمان دسترسی حافظه ۱۰۰ نانوثانیه را در نظر بگیرید. ( نرخ خطای صفحه) چه نرخ خطای صفحه نیاز میشود تا زمان دسترسی مؤثر کمتر از ۱۱۰ نانوثانیه شود؟
پاسخ صحیح: گزینهٔ B —
The effective (memory) access time under demand paging is a weighted average of a normal access (no fault) and a page-fault service:
with ns and ns.
Since the fault service is enormously larger than a memory access, simplify by approximating (the term is negligible):
Impose the requirement ns:
Keeping the exact form gives , the same bound to four significant figures.
So the page-fault rate must satisfy , which is option 2.
Pitfall: Watch the units — convert the ms service time to nanoseconds ( ns) before mixing it with the ns memory time. Forgetting this (or mis-counting the leading zeros in the answer choices) flips you to a wrong option like .