In: Computer Science
Consider the following segment table:
Segment Base Length
0 219 600
1 2300 14
2 90 100
3 1327 580
4 1952 96
What are the physical addresses for the following logical addresses?
Given segment table:
Segment-Base-Length
0-219-600
1-2300-14
2-90-100
3-1327-580
4-1952-96
What are the physical addresses for the following logical
addresses?
Here, The Physical address is calculated as Base+FrameNumber
Question 1) 0,430
Ans: 649
For this, the Base is 219 and the Frame number is 430 ==>
219+430=649
Question 2) 1,10
Ans: 2310
For this, the Base is 2300 and the Frame number is 10 ==>
2300+10=2310
Question 3) 2,500
Ans: Illegal
reference
It is because the base value is 90 and length is 100 Adding it will
give 190
Now add Base+FrameNumber ==> 90+500=590 which is much greater
than 190. so it holds an illegal reference.
Question 4) 3,400
Ans: 1727
For this the Base is 1327 and the Frame number is 400 ==>
1327+400-1727
Question 5) 4,112
Ans: Illegal
reference
It is because the base value is 1952 and length is 96 Adding it
will give 2048
Now add Base+FrameNumber ==> 2064 which is much greater than
2048.so it holds an illegal reference.
(Feel free to drop me a comment, If you need any help)
Hope this Helps!!!
Please upvote as well, If you got the answer?
If not please comment, I will Help you with that...