why is the virtual page number 165 and the pageset is 47??
why is the virtual page number 165 and the pageset is 47??
1 Reply
with paging, the address value can be thought of as two separate values, one being the page id and other being the address within that page (offset)
in this case the size of the page is 4 kilobytes, which needs 12 bits to represent fully
and the remaining 20 is used as a page number
in that image the green part represents the page number
the purple (gray?) part is the offset within the said page
so 0x000A5 (first 20 bits) is the page number, and 0x02F is the offset
which when converted to decimal is 165 and 47