Could anyone explain to me this concept. For example, lets say that a system has 32-bit virtual address and the size of the page is 4096, and the virtual address is 19985. How did we reach to this outcome that address 19986 contains page number = 4, and Offset = 3602 ?

I would appreciate the help

This scheme appears to use div and mod: 19985 div 4096 = 4 remainder 3602 There are a myriad other possible schemes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.