asked 204k views
1 vote
Suppose we have 2^10 bytes of virtual memory and 2^8 of physical mian memory. Suppose page size is 2^4 bytes.

a)how many pages are there in virtual memory?

b)how many page frames are there in main memory?

c)how many entries are in the page table for a process that uses all of virtual memory??

asked
User Debran
by
8.4k points

1 Answer

5 votes
a) There are 2^10/2^4 = 2^6 = 64 pages in virtual memory.

b) There are 2^8/2^4 = 2^4 = 16 page frames in main memory.

c) Since the page size is 2^4 bytes, each page contains 2^4 bytes. Therefore, there are 2^10/2^4 = 2^6 = 64 pages in virtual memory. Each page has a corresponding page table entry, so there are 64 entries in the page table for a process that uses all of virtual memory.
answered
User Albatross
by
8.1k points