Consider the following segment table in segmentation scheme: SegmentID Base…

2014

Consider the following segment table in segmentation scheme:

SegmentID    Base     Limit
   0          200      200
   1          500      12510 
   2          1527     498 
   3          2500     50

What happens if the logical address requested is -Segment Id 2 and offset 1000?

  1. A.

    Fetches the entry at the physical address 2527 for segment Id2

  2. B.

    A trap is generated

  3. C.

    Deadlock

  4. D.

    Fetches the entry at offset 27 in Segment Id 3

Attempted by 90 students.

Show answer & explanation

Correct answer: B

1. Identify the logical address components: Segment ID is 2, Offset is 1000. 2. Refer to the segment table for Segment ID 2: The Limit is 498. 3. Compare the Offset to the Limit: 1000 is greater than 498. 4. Since the Offset exceeds the Limit, this is an invalid memory access. 5. The system generates a trap to handle the segmentation fault.

Explore the full course: Isro