1,268 views
1 votes
1 votes

Suppose we have virtual memory containing 8 pages with 512 bytes per page and physical memory with 16-page frames.

Given the following page table ( where virtual page number gives page number and page frame number gives frame number ), the physical address( in decimal ) corresponding to the virtual address of page number 4, byte 241 is ______ .

1 Answer

3 votes
3 votes
# pages = 8

page size = 512 Byte = frame size

# frames = 16

physical memory address consists of frame no.+ byte offset

for 16 frames 4 bit will be frame no. & since page size is 512 Bytes, byte offset = 9 bits.

physical address length = 4+9=13 bits.

Now, it can be seen from the page table that page no. 4 is having frame no. 3, which mean page no. 4 is in frame no. 3 of main memory.

And within the page we have to access byte no. 241.

so physical address will look like: 3,241->convert it to 13 bit binary->0011011110001=(1777) base 10.

Related questions

4 votes
4 votes
5 answers
3