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.

If a process of size 34KB is to be executed on this machine, then what will be the size of internal fragmentation for this process?

  1. A.

    4KB

  2. B.

    Zero

  3. C.

    1KB

  4. D.

    2KB

Attempted by 171 students.

Show answer & explanation

Correct answer: D

Final answer: 2KB

Explanation:

  1. Page size = 4 KB. Process size = 34 KB.

  2. Number of pages required = ceil(34 ÷ 4) = 9 pages.

  3. Data stored in full pages = 8 × 4 KB = 32 KB. Data on last page = 34 KB − 32 KB = 2 KB.

  4. Internal fragmentation = page size − data on last page = 4 KB − 2 KB = 2 KB

Therefore, the size of internal fragmentation for this process is 2 KB.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor