Advertisement
rayslhcf

OS_HW4

Dec 2nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. (1) The selector is an index into the segment descriptor table. The segment descriptor result plus the original offset is used to produce a linear address with dir/page/offset. The dir is an index into a page directory; the entry from this directory selects the page table, and the page field is an index into that page table. The entry from the page table, plus the offset, is the physical address.
  2. - Selector คือ index ที่ชี้ไปยังตาราง segment descriptor
  3. ผลบวกระหว่าง segment descriptor กับ original offset นำมาใช้ในการสร้าง linear address จาก dir, page และ offset
  4. dir คือ index ที่ชี้ไปยัง page directory
  5. ค่าที่ได้จาก directory นำไปเลือก page table และ page field จะเป็น index ที่ชี้ไปใน page table
  6. ค่าที่ได้จาก page table บวกกับ offset ได้เป็น physical address
  7.  
  8. (2) Such a page translation mechanism offers the flexibility to allow most OS's to implement their memory scheme in hardware, instead of having to implement some parts in hardware and some in software. Because it can be done in hardware, it is more efficient -- and the kernel is simpler.
  9. - Page translation มีความยืดหยุ่นที่จะอนุญาติให้ OS สามารถจัดการรูปแบบ memory ใน hardware ได้มากที่สุด
  10. แทนที่จะมีการจัดการในฮาร์ดแวร์บางส่วนและซอฟแวร์บางส่วนใน เพราะมันสามารถทำให้เสร็จได้ใน hardware
  11. ทำให้มันมีประสิทธิภาพมากขึ้น
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement