Skip to content
Official PYQ · 1996

GATE CS 1996 Q2.18 — Memory Management and Virtual Memory

Explain with AI

A 10001000 Kbyte\text{Kbyte} memory is managed using variable partitions but no compaction. It currently has two partitions of sizes 200200 Kbyte\text{Kbyte} and 260260 Kbyte\text{Kbyte} respectively. The smallest allocation request in Kbyte\text{Kbyte} that could be denied is for

Choose one option
View worked solution

Answer: B

To find the smallest allocation request that could be denied, we need to determine the worst-case distribution of the remaining free memory that minimizes the size of the largest contiguous free block (hole).

  • Total memory: 1000 KB1000\text{ KB}
  • Allocated partitions: 200 KB200\text{ KB} and 260 KB260\text{ KB}
  • Total occupied memory: 200 KB+260 KB=460 KB200\text{ KB} + 260\text{ KB} = 460\text{ KB}
  • Total free memory: 1000 KB−460 KB=540 KB1000\text{ KB} - 460\text{ KB} = 540\text{ KB}

With two allocated partitions, the free memory can be divided into at most 33 separate free holes (one before the first partition, one between the two partitions, and one after the second partition).

To minimize the size of the largest free hole, we distribute the 540 KB540\text{ KB} of free space as evenly as possible among these 33 holes:

Size of each hole=540 KB3=180 KB\text{Size of each hole} = \frac{540\text{ KB}}{3} = 180\text{ KB}

In this configuration, the maximum contiguous free block available is 180 KB180\text{ KB}. Consequently, any allocation request of size 181 KB181\text{ KB} or more cannot be satisfied and will be denied. Thus, the smallest request that could be denied is 181 KB181\text{ KB}.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions