看板 Grad-ProbAsk 關於我們 聯絡資訊
關於求page table size 有兩種答案? 如: 32-bit virtual byte address 4-KB pages 30-bit physical byte address What is the total size of the page table for each process in this machine, assumig that the valid,protection,dirty,and use bits take a total of 4 bits and that all the virtual pages are in use? (Assume that disk addresses are not stored in the page table) 解1: page數=2^32/2^12=2^20 page 1 page size=4bit+30bit-12bit= 22bit 近似於 24bit=3byte ←我的問題所在 page table size =2^20*3Byte 解2: page數=2^32/2^12=2^20 page 1 page size=4bit+30bit-12bit= 22bit ←我的問題所在 page table size =2^20*22bit 請問兩種解都是可行的嗎? --
kefr:不然你先過年好了!!01/24 20:22
crocus:簽名檔有控制碼@@01/24 20:24
naruto1010:嗯...沒有控制碼呀 是控制碼的話五樓剁雞雞01/24 20:25
WhatCanIDo:嗯...沒有控制碼呀 是控制碼的話五樓剁雞雞01/24 20:26
narutomaan:五樓剁雞雞01/24 20:26
narutomaan:靠北喔...01/24 20:26
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.195.36.124 ※ 編輯: eric111043 來自: 123.195.36.124 (02/07 10:12)
assassin88:如果是求page table應該要使用第一種方法,因為在他是 02/07 10:26
assassin88:在memory內,所以up to full word。 02/07 10:26
eric111043:感謝! 02/07 12:03