[理工] 100 暨大資工 os memory

看板Grad-ProbAsk作者 (jordan)時間10年前 (2013/12/24 13:57), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
virtual address is 32bits 2 level paging first level paging uses 6 bits second level paging uses 12 bits (a)how many enties are there in the first level paging table and in each of the secong level paging table? 這題應該就是first level 有 2^6個entry second level 有2^12個entry 應該對吧? (b)assuming that each entry occupies 4 bytes,estimate the total memory used for all the second level paging? 2^12 * 2^2 = 2^14 bytes 這樣算對嗎? 不知道有沒有我想的那麼簡單 題目寫各佔10分 不知道有沒有陷阱 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.124.143.199

12/24 14:05, , 1F
我覺得第二題要在乘2^6,總共有2^6個level 2 每一個有2^1
12/24 14:05, 1F

12/24 14:05, , 2F
2個entry,又每個entry 4 byte,所以總共level 2 是2^6*2
12/24 14:05, 2F

12/24 14:05, , 3F
^12*2^2。
12/24 14:05, 3F

12/24 15:30, , 4F
thanks!
12/24 15:30, 4F
文章代碼(AID): #1IkI8mzy (Grad-ProbAsk)