Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

6. (Address translation using segmentation) a. Consider the segment table presen

ID: 3719437 • Letter: 6

Question

6. (Address translation using segmentation) a. Consider the segment table presented above and assume the following breakdown of a segmentation (virtual) address Offset Segment# 4 bits 8 bits Translate the following addresses into physical addresses (or indicate "invalid" if the mapping is invalid) 0x030 0x080 0x240 0x348 0x200 0x123 0x155 b. What is the maximum number of segments per process that are possible? Explain your answer! c. What is the maximum size of each segment? Explain your answer!

Explanation / Answer

a. Unless a segment table is given i dont think it is possible to find the physical addresses of using just the virtual address given..
For example:
0x030 means segment 0000 and offset 00110000. But to validate and convert in physical address we would need segment table which would tell if this segement actually exists and if yes what is its physical address ofset.

b. Maximum number of segments per process = 2Number of segement bits = 24 = 16.
this is because only 16 distinct segment number can be represented by 4 bits.

c. Maximum size of each segment = 2number of offset bits = 28 = 256
this is because every segment address can be represented only by these offset bits.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote