A computer system has 16-bit virtual addresses and a page size of 4 KB. The system has a page table for each process, which requires 2 bytes per page table entry. What is the maximum size of physical memory that can be accessed by each process?
13 views
- 2 MB
- 4 MB (Correct Answer)
- 8 MB
- 16 MB
Explanation
Answer: b) 4 MB
Explanation: The page size is 4 KB, which is equal to 2^12 bytes. Therefore, the number of pages in the virtual address space is 2^16 / 2^12 = 2^4 = 16. Each page table entry requires 2 bytes, so the size of the page table is 16 * 2 = 32 bytes. This means that the page table can address up to 2^32 bytes of physical memory. Since the maximum size of virtual memory is 2^16 * 2^12 = 2^28 bytes, the maximum size of physical memory that can be accessed by each process is 2^28 / 2^32 = 2^(-4) * 2^28 = 2^24 bytes = 4 MB.