CS FundamentalsHardGATE CS

Segment table (base, length): S0 (219, 600), S1 (2300, 14), S2 (90, 100), S3 (1327, 580), S4 (1952, 96). What are the physical addresses for (0, 430), (1, 10), (2, 500), (3, 400), (4, 112)? ('trap' = addressing error)

  1. A. 649, 2310, 590, 1727, 2064
  2. B. 649, trap, trap, 1727, trap
  3. C. 649, 2310, trap, 1727, 2048
  4. D. 649, 2310, trap, 1727, trap

Correct answer: D. 649, 2310, trap, 1727, trap

Valid only if offset < length: 219+430 = 649; 2300+10 = 2310; 500 ≥ 100 traps; 1327+400 = 1727; 112 ≥ 96 traps. Adding base and offset without the limit check gives 590 and 2064.

More Operating Systems questions

Exams that ask this topic