CS FundamentalsVery hardGATE CS · TCS Digital
For the reference string 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 with 4 frames (initially empty), how many more page faults does LRU incur than Optimal?
- A. 3
- B. 1
- C. 2
- D. 4
Correct answer: C. 2
LRU gives 10 faults and Optimal gives 8, a difference of 2.
More Operating Systems questions
- In the standard five-state process model, which transition can NEVER happen directly?
- The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the:
- Short jobs stuck waiting behind one long CPU-bound job is called the convoy effect. It is characteristic of which scheduling algorithm?
- A system spends most of its time swapping pages in and out and does very little useful work. This condition is called:
- Which page-replacement algorithm can show Belady's anomaly (more frames giving more page faults)?
- The disk-scheduling algorithm in which the head sweeps to one end of the disk servicing requests and then reverses direction, like a lift…