Q6.Marks: +2.0UGC NET Paper 2: Computer Science 26th Nov 2021
📄 Passage
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 ______
1.22✓ Correct
2.14
3.32
4.8
Solution
The correct answer is 22.
Key Points
According to the question, the total size of the main memory is 16 GB. The size of the virtual address space is 32 bits. The page size is 4KB. It is also given that the frame size and page size are the same for the given machine.
Converting all the units into bits. So, 16 GB= (24 x 210 x 210 x 210 x 23) bits = 237 bits.
4KB= (22x 210x 23) bits = 215 bits.
So, the number of bits reserved for the frame offset is = (237/ 215) = 222 which is 22 units.
Thus the correct answer is 22.
Additional Information
In an operating system, the page is referred to as a continuous memory block with a fixed memory size. But it is virtual memory. The page is the smallest data set unit in the virtual memory.
The frame in the operating system is referred to as a fixed length of the physical block. The frame is often found on the RAM block.