CS FundamentalsHardHCL · Tech Mahindra pattern
Segment table (base, limit): S0 (1400, 600), S1 (6300, 400), S2 (4300, 300), S3 (3200, 1100). What happens for logical addresses (2, 120) and (1, 450)?
- A. (2, 120) → 4180; (1, 450) → trap
- B. Both cause a trap
- C. (2, 120) → 4420; (1, 450) → 6750
- D. (2, 120) → 4420; (1, 450) → trap: offset exceeds limit
Correct answer: D. (2, 120) → 4420; (1, 450) → trap: offset exceeds limit
(2, 120): offset 120 < limit 300, physical = 4300 + 120 = 4420. (1, 450): offset 450 ≥ limit 400, so the hardware traps to the OS (addressing error). Adding base without checking the limit gives the tempting 6750.
More Operating Systems questions
- Page size is 1 KB. The page table maps page 0 → frame 3, page 1 → frame 7, page 2 → frame 5, page 3 → frame 2. What physical address…
- Which statement about threads of the same process is FALSE?
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Round Robin, quantum 4. A…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Round Robin with…
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Priorities A = 3, B = 1, C = 4…
- Reference string: 3, 1, 4, 3, 2, 1, 5, 3, 4, 1, 2, 5, 4, 3 frames, initially empty. Which statement is correct?