CS FundamentalsHardGATE CS
Reference string (times 1 to 20): 2, 6, 1, 5, 7, 7, 7, 7, 5, 1, 6, 2, 3, 4, 1, 2, 3, 4, 4, 4. With window Δ = 5, what is the working-set size at time 10 and at time 14 (each window covers the last 5 references up to and including that time)?
- A. 4 and 5
- B. 3 and 4
- C. 3 and 5
- D. 5 and 5
Correct answer: C. 3 and 5
At t = 10 the window is references 6–10: [7, 7, 7, 5, 1], set [1, 5, 7]. At t = 14 it is references 10–14: [1, 6, 2, 3, 4], set [1, 2, 3, 4, 6].
More Operating Systems questions
- A system's CPU utilisation is 12% while the paging disk is 98% busy. Which action is most likely to INCREASE CPU utilisation?
- TLB lookup 10 ns, memory access 100 ns, single-level page table, TLB hit ratio 90%. One in a million accesses causes a page fault…
- A system has 62 free frames shared by two processes of sizes 10 pages and 127 pages, allocated proportionally to size (rounded down). How…
- A buddy system manages 512 KB, initially one free block. Requests arrive: A = 70 KB, B = 35 KB, C = 80 KB, then A is freed, then D = 60…
- Memory holes in address order: 100 KB, 500 KB, 200 KB, 300 KB, 600 KB. Requests in order: 212 KB, 417 KB, 112 KB, 426 KB (a hole that is…
- A virtual address is 0x00403A7C on a system with 4 KB pages and a two-level page table (10-bit outer index, 10-bit inner index, 12-bit…