DEV Community

loading...

Discussion on: Question on Logical Address & Physical Address | Operating System - M05 P10

Collapse
josephwasily profile image
Joseph Botros

Isn't it :
No of pages = 2^32 / 2^12 = 2^20 ?

Collapse
rahulmishra05 profile image
Rahul Mishra Author • Edited

No, please refer to this image.
Page offset = 12 bits
Page size = 32 bits
So, Page No = 32 - 12 = 20 bits

Thus No of pages = 2^20

I hope your doubt get clear :D

dev-to-uploads.s3.amazonaws.com/i/...