CS FundamentalsHardGATE CS (PYQ pattern)
A system uses segmentation with paging (1024-byte pages). Segment table: seg 0: limit 3000, page frames [7, 2, 9]; seg 1: limit 1500, frames [4, 11]; seg 2: limit 2500, frames [5, 6, 13]. A logical address (segment, offset) is valid if offset < limit. For the accesses (0,2500), (1,1400), (2,2048), (1,1600), (0,100), what is the sum of the physical addresses of the valid ones?
- A. 42912
- B. 39840
- C. 41888
- D. 51104
Correct answer: C. 41888
Valid accesses and addresses: [((0, 2500), 9668), ((1, 1400), 11640), ((2, 2048), 13312), ((0, 100), 7268)]. (1,1600) exceeds limit 1500, so it traps; (1,1400) lies in page 1 (frame 11).
More Operating Systems questions
- A process on a 4-level, 48-bit paging system (9 index bits per level, 4 KB pages, 4 KB page-table pages) maps three regions: 2 MB at…
- On a 4-level x86-64 style paging system (4 KB table pages, 512 eight-byte entries each, 2 MB pages are leaves at the third level), a…
- Polling a device costs a fixed 10% of the CPU (100,000 polls/s at 1 microsecond each) plus 0.5 microseconds of handling per event…
- In Lamport's bakery algorithm five processes P0 to P4 hold tickets (number, id): P0 has 4, P1 has 3, P2 has 4, P3 is not competing (0) and…
- A 200 KB heap is managed with a first-fit free list; adjacent free blocks are merged when memory is freed. Operations in order: alloc…
- A fixed-size job runs 6 times faster on 8 cores than on 1 core. Assuming Amdahl's law holds exactly (a serial fraction f, the rest…