Read the following and answer the questions: Consider a machine with 16 GB…
2021
Read the following and answer the questions:
Consider a machine with 16 GB main memory and 32‐bits virtual address space, with page size as 4KB. Frame size and page size is same for the given machine.
The number of bits reserved for the frame offset is ______ .
- A.
12
- B.
14
- C.
32
- D.
8
Attempted by 145 students.
Show answer & explanation
Correct answer: A
Answer: 12 bits
Explanation: Determine how many bytes are in a page and express that as a power of two.
Page size = 4 KB = 4 × 1024 = 4096 bytes = 2^12 bytes.
The frame offset must address bytes within a page, so the number of offset bits equals the exponent: 12 bits.
Note: The 32-bit virtual address implies 32 − 12 = 20 bits for the virtual page number, but this is not required to find the offset.
A video solution is available for this question — log in and enroll to watch it.