In a system with a page size of 4 KB and a physical address space of 64 GB,…
2024
In a system with a page size of 4 KB and a physical address space of 64 GB, what is the number of bits required for the page offset?
- A.
10 bits
- B.
12 bits
- C.
14 bits
- D.
More than one of the above
- E.
None of the above
Attempted by 274 students.
Show answer & explanation
Correct answer: B
To find the number of bits required for the page offset, we use the formula:
Number of bits for page offset = log₂(page size in bytes)
Given: Page size = 4 KB = 4 × 1024 = 4096 bytes
So, log₂(4096) = 12
Therefore, 12 bits are required for the page offset.
हिन्दी उत्तर:
पेज ऑफसेट के लिए आवश्यक बिट्स की संख्या निकालने के लिए, हम निम्न सूत्र का उपयोग करते हैं:
पेज ऑफसेट के लिए बिट्स की संख्या = log₂(पेज आकार बाइट में)
दिया गया है: पेज आकार = 4 KB = 4 × 1024 = 4096 बाइट
तो, log₂(4096) = 12
इसलिए, पेज ऑफसेट के लिए 12 बिट आवश्यक हैं।