UGC NET 2021 | Find number of pages required for

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.

Find number of pages required for the given virtual address space?
i➥ 210
ii➥ 212
iii➥ 220
iv➥ 230
Answer: Option III 

Solution:

Given,
Logical Address Space = 32 bits,
Page size = 4KB = 212.

Formula used,
Page offset = ⌈log2⁡(page size)⌉,
Total number of pages = 2page number.

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

Note:  log22 = 1
Find number of pages required for the given virtual address space?
Page number = 32-12 = 20 bits.
Therefore, total number of pages = 220                        

So, Option(III)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

UGC NET 2021 | Find number of pages required for

Leave a Comment

Your email address will not be published.

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