I have an exercise which is unclear to me. The exercise is about paging(operating system).

Exercise is:

enter image description here

e. Translate into physical addresses the one(s) which are both legal and in memory.

f. What happens when a logical address is not legal? And when it is not in memory?

So far I have tried something this:

a and b) Page size = frame size = $2^7$

c) Numbers of frames = $2^8$

d) 9th addr. of page 0

logical address = (128*0)+9 = 9 it is in mem and valid

physical mem = (128*4)+9 = 521 it is in mem and valid

13th address of page 1
logical = 128*1 + 13 = 141 which is valid but not in mem
phsical mem = 128*

I am having the issue to calculate the logical address and physical address. How should these be calculated?

I don't know how to calculate point d, e and f.

Please, someone, help me.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.