Open In App
Related Articles

ISRO | ISRO CS 2014 | Question 18

Improve Article
Improve
Save Article
Save
Like Article
Like

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 19 Apr, 2018
Like Article
Save Article
Similar Reads