3 3 votes Consider the following segment table in segmentation scheme : $\begin{array}{|l|l|l|l|l|}\hline \textbf{Segment ID} & \textbf{Base} & \textbf{Limit} \\\hline \text{0} & \text{200} & \text{200} \\\hline \text{1} & \text{5000} & \text{1210} \\\hline \text{2} & \text{1527} & \text{498} \\\hline \text{3} & \text{2500} & \text{50} \\\hline \end{array}$ What happens if the logical address requested is – Segment Id $2$ and offset $1000$? Fetches the entry at the physical address $2527$ for segment Id $2$ A trap is generated Deadlock Fetches the entry at offset $27$ in Segment Id $3$ Operating System segmentation operating-system isro2014 + – ajit 7.6k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply chidambareswar23 commented Mar 7 reply Follow flag Source: Galvin 1 1 replyShare Siddharth_Perkar commented Aug 22 reply Follow flag Simple:Offset < Limit hona chahiye.Agar offset limit se bahar hai → trap.Given: Segment 2 has limit 498 and offset is 1000 so Offset segment ki boundary ke bahar hai.And if Offset < Limit then Physical address = Base + Offset i.e = 1527 + 1000 = 2527 (but pehli hi condition satisfy nahi hone ke karan invalid) 0 0 replyShare Please log in or register to add a comment.
Best answer 6 6 votes Answer: (b) Explanation: Offset 1000 in Segment Id 2 is crossing the Segment Id 2 memory area. Here Segment Id 2 memory area is 1527 to 1527 + 498 = 2025. Mangilal Saraswat answered Jun 24, 2016 • selected Jun 24, 2016 by Arjun Mangilal Saraswat comment Share Follow See 1 comment 1 1 comment reply satyaAchar commented Jul 21, 2024 reply Follow flag it should be 1527+497 0 0 replyShare Please log in or register to add a comment.
4 4 votes an os trap signal will be generated. as offset tell how much deeper we have to go in the segment. as we have given 1000 as offset while the segment size is 498 . it will try to read another process memory which should not be allowed in any case Tendua answered Sep 17, 2015 Tendua comment Share Follow See all 7 Comments 7 7 Comments reply Show 4 previous comments sonu commented Sep 17, 2015 reply Follow flag Trap will be generated by hardware. Becz Hardware will take care of protection of memory space..But i think it can vary from system to system. It should be based on implementation. 0 0 replyShare Tendua commented Sep 17, 2015 reply Follow flag What i think it will be software ..segmentation and paging are not actual . they are all logical. Cpu dosen't even know if segmentation is there or not. If hardware dosen't knows it then how u thnk hardware is going to generte and interrup and how will it be serviced. 0 0 replyShare sonu commented Sep 17, 2015 reply Follow flag It will stop its execution https://en.wikipedia.org/wiki/Memory_protection 0 0 replyShare Please log in or register to add a comment.
0 0 votes It should be a TRAP as the limit > offset here for id 2 ANI answered Sep 17, 2015 ANI comment Share Follow 0 reply Please log in or register to add a comment.