CS FundamentalsHardAccenture · Capgemini technical pattern
Reference string: 1, 3, 0, 3, 5, 6, 3, 1, 0, 6, 5, 3. With 3 frames, initially empty, how many page faults does the Optimal (Belady’s MIN) algorithm cause?
- A. 6
- B. 7
- C. 8
- D. 11
Correct answer: B. 7
1, 3, 0 fault (3). At 5 evict 0 (used farthest ahead) → 4. At 6 evict 5 → 5. 3 and 1 hit. At 0 evict 1 (never used again) → 6. 6 hits. At 5 evict 0 or 6 → 7. 3 hits. Total 7; FIFO gives 11.
More Operating Systems questions
- A disk has cylinders 0–199 and the head is at cylinder 100. Pending requests: 45, 130, 12, 180, 90, 150, 60. What is the total head…
- Three processes share a single resource type with identical instances. Their maximum needs are 3, 4 and 5 instances. What is the minimum…
- Which of the following is NOT a requirement for a correct solution to the critical-section problem?
- Under Highest Response Ratio Next (non-preemptive), the CPU becomes free at time 9. Ready processes (arrival, burst): P2 (2, 3), P3 (4…
- Reference string: 6, 1, 6, 2, 0, 1, 6, 4, 2, 1, 0, 4, 6. With 3 frames, initially empty, which set of page-fault counts is correct for…
- Disk cylinders 0–199; the head is at cylinder 100 and moving towards cylinder 0. Requests: 45, 130, 12, 180, 90, 150, 60. What is the…