CS FundamentalsModerateGATE CS
In a system with paging, a process's logical address space is 64 pages of 1 KB and physical memory is 32 frames. How many bits are in the logical address and in the physical address?
- A. 15 and 16
- B. 16 and 16
- C. 6 and 5
- D. 16 and 15
Correct answer: D. 16 and 15
Logical: 64 × 1024 = 2¹⁶ bytes → 16 bits. Physical: 32 × 1024 = 2¹⁵ → 15 bits. 6 and 5 are just the page and frame number widths.
More Operating Systems questions
- An 8 MB file uses linked indexed allocation: each 4 KB index block holds 1024 four-byte pointers, of which the last is reserved as the…
- Processes (arrival, burst) are P1 (0, 8), P2 (1, 4), P3 (2, 9), P4 (3, 5) and P5 (6, 2). What is the average waiting time under preemptive…
- Round Robin with quantum 2 runs A (arrival 0, burst 5), B (1, 3), C (2, 6) and D (4, 2). A newly arrived process joins the ready queue…
- At time 10 the CPU becomes free and four jobs wait: J1 (arrived 2, burst 6), J2 (arrived 5, burst 2), J3 (arrived 1, burst 10), J4…
- With 3 frames, initially empty, the reference string 4, 7, 0, 7, 1, 0, 1, 2, 1, 2, 7, 1, 2, 0, 4, 7 is run under FIFO, LRU and Optimal…
- A clock (second-chance) algorithm has frames f0–f4 holding P3 (R = 1), P8 (R = 0), P5 (R = 1), P1 (R = 1) and P6 (R = 0). The hand points…