Frame offset is reserved for number of bits

Comprehension:
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 __________?
i➥ 12
ii➥ 24
iii➥ 28
iv➥ 34
Answer: Option I 

Solution:

Given,
Page size = 4KB = 212.

Formula used,
Page offset = ⌈log2⁡(page size)⌉,
Frame offset = Page offset.

Calculation,
Page offset = ⌈log2⁡(212)⌉
             = ⌈12*log22⌉ 
             = ⌈12⌉
             = 12 bits

Note:  log22 = 1
Frame offset = Page offset = 12 bits
Therefore, 12 bits is reserved for the frame offset.                         

So, Option(I)is correct. 

More related Questions on Memory Management
Read more
More related Questions on Operating System
Read more
More Questions on June 2021
Read more

You are welcome to give the better solution for this question

Leave a Comment

Your email address will not be published.

error: Content is protected !!
Open chat
1
Hi,how Can We Help You ?