CS FundamentalsModerateGATE CS · Amazon/Microsoft SDE MCQ
A logical address space has 8 pages of 2 KB each, and physical memory has 32 frames. How many bits are in a logical address and in a physical address?
- A. 13 and 15
- B. 14 and 16
- C. 13 and 16
- D. 14 and 15
Correct answer: B. 14 and 16
The offset needs 11 bits (2 KB). Logical: 3 page bits + 11 = 14 (16 KB). Physical: 32 frames of 2 KB = 64 KB, so 5 frame bits + 11 = 16. The two address sizes need not match.
More Operating Systems questions
- Reference string 1, 2, 3, 1, 4, 5, 1, 6, 2, 1, 3, 4 with 3 frames, initially empty. The clock (second-chance) algorithm sets a page's…
- TLB lookup 20 ns (done first), memory access 100 ns, single-level page table, TLB hit ratio 80%. In addition, 1 in every 1,000 memory…
- A bounded buffer uses semaphores empty = N, full = 0 and mutex = 1. The producer is changed to do wait(mutex) BEFORE wait(empty); the…
- Jobs A (6), B (2), C (8) and D (3) all arrive at time 0 in that order. What are the average waiting time under non-preemptive SJF and the…
- Under Linux CFS, two CPU-bound tasks share one CPU: one at nice 0 (weight 1024) and one at nice 5 (weight 335). About what share of CPU…
- A system's average process size is s = 1 MB and each page-table entry takes e = 8 bytes. Balancing page-table overhead (s·e / p) against…