Correct Answer - Option 2 : A trap is generated
The correct answer is "option 2".
CONCEPT:
Segmentation is a process of dividing each process into variable size segments, where each segment performs related functions.
Segment table stores details about segments.
Base register of a segment contains the Base address value i.e. smallest physical address from where each segment starts.
Limit register contains the last range value of a Segment.
CALCULATION:
For a segment address to be in the range of the segment, it must be:
Base address <= segment address <= ( Base address + limit register value)
Base address
|
Limit value
|
Valid address range
|
Offset
|
Check valid offset range
|
1527
|
498
|
1527 to 1527+498
|
1000
|
1000 > 498
|
Since the offset value is exceeding the value of the limit of segment Id2, the trap will be generated.
Hence, the correct answer is "option2".
Technique
|
Removes
|
Leads to
|
Segmentation
|
Internal fragmentation
|
External fragmentation
|
Paging
|
External fragmentation
|
Internal fragmentation
|