calculating page size and segment size

时光怂恿深爱的人放手 提交于 2020-01-02 12:27:29

问题


in a paged-segmented system we have the virtual address of 32 bits and 12 bits for the offset,11 bits for segment and 9 bits for page number.the how can we calculate the page size ,maximum segment size and maximum number of segment size?


回答1:


  • 12 bits are reserved for offset, so the page size is 2^12 = 4KB
  • 9 bits are reserved for page number, so each segment can contain 2^9 = 512 pages
  • Each segment can grow up to size of (# of pages) * (pages size), so maximum segment size is 512 * 4K = 2M

For more information see http://www.cs.umass.edu/~weems/CmpSci535/Discussion21.html



来源:https://stackoverflow.com/questions/5927684/calculating-page-size-and-segment-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!