i new operating systems , following handbook reading better grasp on how computers work. having stumbled upon memory management found confusing when allocating pages , frames using page tables virtual memory locations.
page/frame size 4k , system 32-bit (it handles addresses 4byte long , page entries 4byte long).
if same process references 2 different memory locations needs virtual_memorylocation_a 222 , virtual_memorylocation_b 999 these memory requests pinned same page 0 (first page in page table) since both not extend beyond frane size scope of 4096 bytes , granted memory os same frame x?
if have page size of 4096, then
page number = address div 4096 page offset = address mod 4096
those 2 values uniquely identify logical memory location.
two addresses can in same frame. if not case, there no point in having pages. memory locations 0 .. 4095 in same, zeroth page.
Comments
Post a Comment