首页 > 试题广场 >

A certain computer provides it

[问答题]
A certain computer provides its users with a virtual-memory space of 232 bytes. The computer has 218 bytes of physical memory. The virtual
memory is implemented by paging, and the page size is 4096 bytes. A user process generates the virtual address 11123456. Explain how
the system establishes the corresponding physical location. Distinguish between software and hardware operations.
推荐
The virtual address in binary form is

0001 0001 0001 0010 0011 0100 0101 0110

Since the page size is 212, the page table size is 220. Therefore the loworder 12 bits "0100 0101 0110" are used as the displacement into the page,
while the remaining 20 bits "0001 0001 0001 0010 0011" are used as the displacement in the page table.
发表于 2018-03-23 21:57:20 回复(0)