CS FundamentalsHardGATE CS · TCS Digital
The reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 is run under FIFO replacement first with 3 frames and then with 4 frames (all initially empty). What are the numbers of page faults, in that order?
- A. 10 and 9
- B. 9 and 10
- C. 9 and 9
- D. 9 and 8
Correct answer: B. 9 and 10
FIFO gives 9 faults with 3 frames and 10 with 4 frames - Belady's anomaly, where more frames produce more faults.
More Operating Systems questions
- The head is at cylinder 50 moving towards higher cylinders, and the queue is 82, 170, 43, 140, 24, 16, 190. What is the total head…
- Free partitions in memory order are 100, 500, 200, 300 and 600 KB. Processes of 212, 417, 112 and 426 KB arrive in that order. Which…
- A spinlock is built with an atomic test-and-set instruction. Which property does the plain version of this lock NOT guarantee?
- How many processes (including the original one) exist after this program runs to completion? c fork(); if (fork()) { fork(); }
- A file system uses 4 KB blocks and 4-byte block pointers. An inode has 12 direct pointers, one single-indirect and one double-indirect…
- How many page faults occur under the Optimal replacement policy with 3 frames (initially empty) for the reference string 7, 0, 1, 2, 0, 3…