CS FundamentalsModerateGATE CS
A process has page-fault rate p. Memory access = 100 ns; fault service = 20 ms. To keep the effective access time below 200 ns, p must be below roughly:
- A. 5 × 10⁻⁶
- B. 5 × 10⁻⁵
- C. 10⁻⁶
- D. 5 × 10⁻³
Correct answer: A. 5 × 10⁻⁶
100 + p × 2×10⁷ ns ≤ 200 → p ≤ 100 / (2×10⁷) = 5×10⁻⁶, about one fault per 200,000 accesses.
More Operating Systems questions
- Cylinders 0–49, head at 20, previous request was at 25 (so the head is moving toward 0). Requests: 10, 22, 20, 2, 40, 6, 38. What is the…
- A disk spins at 15,000 RPM; average seek is 3.5 ms; transfer rate is 200 MB/s. What is the average time for a random 64 KB read?
- How many times is "x" printed? (Every fork() succeeds.) c int main() { if (fork() == 0) { if (fork() == 0) fork(); } printf("xn"); }
- How many times is "x" printed? (Every fork() succeeds.) c int main() { for (int i = 0; i < 2; i++) { fork(); fork(); } printf("xn"); }
- How many times is "x" printed? (Every fork() succeeds.) c int main() { if (fork() || fork()) fork(); printf("xn"); }
- Semaphores a = 1, b = 0. P: wait(a); print 1; signal(b); signal(b). Q: wait(b); print 2; signal(a). R: wait(b); print 3. Each runs once…