CS FundamentalsModerateGATE CS
Same array int A[128][128], one row per 512-byte page, 2 frames (LRU), but the loop is `for i in 0..127: for j in 0..127: A[i][j] = 0;`. How many page faults occur?
- A. 16384
- B. 128
- C. 256
- D. 64
Correct answer: B. 128
Row-major traversal stays on one page for 128 consecutive accesses, so each of the 128 pages faults exactly once.
More Operating Systems questions
- A TLB has 128 entries and pages are 4 KB. A process's working set is 2 MB and is accessed uniformly at random. Approximately what fraction…
- A system uses segmentation with paging: a 32-bit logical address has a 4-bit segment number, and each segment is paged with 4 KB pages and…
- A machine has 2 GB of physical memory with 8 KB frames, uses 48-bit virtual addresses, and an inverted page table with 16-byte entries…
- 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…
- 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…