Anonymous user menu

32-bit machine we subdivide the virtual address

In a 32-bit machine we subdivide the virtual address into 4 segments as follows: 10-bit 8-bit 6-bit 8 bit
We use a 3-level page table, such that the first 10-bit are for the first level and so on.
1.  What is the size of a page table for a process that has 256K of memory starting at address 0?
2.  What is the size of a page table for a process that has a code segment of 48K starting at address
0x1000000, a data segment of 600K starting at address 0x80000000 and a stack segment of 64K
starting at address 0xf0000000 and growing upward (like in the PA-RISC of HP)?

1Comment
Parimal Andhalkar @parimal_andhalkar
7 Jan 2016 01:54 pm

to determine size of page table we must know size of page table entry .  page table entry size not given

here process size = 256K = 218 

Page size is 28      

number of page table entries = 218/28    = 210