CS FundamentalsModerateWipro Elite · LTIMindtree
How many page faults occur under LRU replacement with 3 frames (initially empty) for the reference string 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2?
- A. 7
- B. 9
- C. 8
- D. 10
Correct answer: B. 9
Simulating LRU with 3 frames, the faults occur on the references to pages 7, 0, 1, 2, 3, 4, 2, 3, 0: 9 faults in all.
More Operating Systems questions
- A memory access takes 100 ns and a TLB lookup takes 10 ns. With a TLB hit ratio of 90% and a single-level page table in memory, what is…
- The disk head is at cylinder 53 and the request queue is 98, 183, 37, 122, 14, 124, 65, 67. What is the total head movement under SSTF…
- A system has a 32-bit virtual address, 4 KB pages and 4-byte page-table entries, using a single-level page table. What is the size of the…
- A counting semaphore S is initialised to 3. Five processes each execute wait(S) once, with no signal(S) in between. How many of them are…
- Numbering all resource types and requiring every process to request resources only in increasing order of number prevents deadlock by…
- Three processes with bursts 10, 5 and 8 ms arrive together at time 0 in the order P1, P2, P3 and are scheduled by Round Robin with a…