开发者

calculating page size and segment size

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?


  • 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜