ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > zstu-(2021-2022)-1 > student homework directories > 2019333500159厉霖开 >
2019333500159厉霖开Homework9 Version 0
👤 Author: by nintendolinkfoxmailcom 2021-12-28 05:30:15 last modified by nintendolinkfoxmailcom
Q: Suppose page size is 8B, find a paragraph of english article, and divided into pages, and set page table and map the contents into physical memory.

A: Original paragraph: My name is Linkai Li :-) (24 characters)

Because the page size is 8B, it can divide into 3 pages.

The following graph shows the procedure of dividing paragraph into pages, setting page table and mapping the contents into physical memory.



Given logical address 16, because 16/8=2 and 16%8=0, we can know the page table number is 2 and offset is 0. Check the table. We found page table number 2 corresponds to the frame 1. So we can get the physical address 8*1+0=8.

Given logical address 11, because 11/8=1 and 11%8=3, we can know the page table number is 1 and offset is 3. Check the table. We found page table number 1 corresponds to the frame 2. So we can get the physical address 8*2+3=19.

Please login to reply. Login

Reversion History

Loading...
No reversions found.