开发者

calculating page size and segment size

开发者 https://www.devze.com 2023-03-03 22:46 出处:网络
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 ,ma

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

精彩评论

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