[理工] [作業系統]-Multilevel Pagetable

看板Grad-ProbAsk作者 (VeL)時間13年前 (2012/09/30 22:12), 編輯推噓1(104)
留言5則, 2人參與, 最新討論串1/1
In a multi-level paging system, the logical address is 32-bit and the page size is 4K bytes. Normally a logical address is divided into two fields: a page number and a page offset. If the page table is too large, it is also paged (a)How many fields will be divided for a logical address in this scheme? How many bits are contained in each of the fields? Why? 我知道Multilevel Paging的logical address可以分成level 1、level 2、offset offset有12bits可以從page size is 4Kbytes知道。 但是就是不知道題目哪裡可以知道接下來的32-12=20bits中 為什麼可以"均分"成10bits給level 1,10bits給level 2? 難不成關鍵字是"divided into",要解讀成平分? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.192.194.92

09/30 22:45, , 1F
通常題目沒特別說明的話就是用均分去算,不然它會給你其中
09/30 22:45, 1F

09/30 22:46, , 2F
一個的bits數,然後會要你算另外一個再去求其他東西。
09/30 22:46, 2F

09/30 22:48, , 3F
然後divided into是說logical address一般都是分成p和d,而
09/30 22:48, 3F

09/30 22:48, , 4F
不是平分的意思。
09/30 22:48, 4F

09/30 22:53, , 5F
感謝樓上!
09/30 22:53, 5F
文章代碼(AID): #1GQ5Cz9s (Grad-ProbAsk)