Open In App

ISRO | ISRO CS 2014 | Question 18

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?
(A) Fetches the entry at the physical address 2527 for segment Id2
(B) A trap is generated
(C) Deadlock
(D) Fetches the entry at offset 27 in Segment Id 3

Answer: (B)
Explanation: Segment-2 has a base address = 1527 and limit address = 498, So it can only access the memory location from 1527 till 1527 + 498, if the process tries to access the memory with offset 1000 then a segmentation fault trap will be generated.
Quiz of this Question

Article Tags :