Question discussion

A segment table has the entries (base, limit): segment 0 → (1500, 500), segment 1 → (5000, 800) and segment 2 → (3000, 400). A logical addr…

1972Medium DSSSB TGT Computer Science 0 replies 1 views
0

A segment table has the entries (base, limit): segment 0 → (1500, 500), segment 1 → (5000, 800) and segment 2 → (3000, 400). A logical address (segment, offset) causes a trap when the offset is not less than the limit. Which of the following logical addresses causes a trap?

  • A(0, 499)
  • B(1, 300)
  • C(1, 799)
  • D(2, 450)
Correct answer: D

Explanation

Segment 2 has a limit of 400, so the offset 450 lies outside the segment and causes a trap.

Discussion 0

Nobody has replied yet. Start the discussion!