Computer Science EngineeringHardISRO SC
A process with 4 initially empty frames references pages 0, 2, 1, 1, 0, 3, 0, 4, 2, 4, 3, 2, 2, 2, 2, 2, 5, 2, 4, 5. Under optimal (Belady) replacement, the number of page faults is
- A. 7
- B. 6
- C. 5
- D. 8
Correct answer: B. 6
Simulate the frames reference by reference, counting each miss (cold misses included); optimal (Belady) gives 6 faults over 20 references.
Practise more OS, DBMS, Networks & Computer Architecture (ISRO CS) questionsOS, DBMS, Networks & Computer Architecture (ISRO CS): notes and key points
More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions
- A process with 3 initially empty frames references pages 5, 3, 5, 3, 6, 0, 5, 2, 1, 3, 5, 5, 1, 3, 6, 3, 3, 4, 4, 4. Under optimal…
- A process with 3 initially empty frames references pages 1, 0, 4, 1, 4, 1, 1, 4, 0, 0, 4, 4, 2, 0, 3, 4. Under LRU replacement, the number…
- A disk has cylinders 0 to 199. The head is at 82; pending requests are 11, 64, 88, 53, 193, 128, 114. Total head movement under SSTF is
- A disk has cylinders 0 to 199. The head is at 94; pending requests are 85, 45, 146, 1, 174, 44, 2. Using C-SCAN toward higher cylinders…
- A disk has cylinders 0 to 199. The head is at 67; pending requests are 190, 105, 55, 77, 78, 87, 71. Moving toward higher cylinders first…
- Processes (arrival, burst in ms): P1(0, 8), P2(4, 3), P3(2, 4), P4(1, 7). Under preemptive SJF (SRTF), the average waiting time in ms is