GATE CS 2026 Set 2 | Question 55
Operating Systems › Memory Management · NAT · 2 marks · Answer: 3
- Question 55Operating Systemsnat2 marksConsider contiguous allocation using a variable partitioning scheme with 8 holes of sizes 20 KB, 4 KB, 25 KB, 18 KB, 7 KB, 9 KB, 15 KB, and 12 KB (no two holes are adjacent). Two processes P1 of size 16 KB and P2 of size 9 KB arrive in that order and are allocated using best-fit. After allocating P1 and P2, the number of holes of size less than 8 KB is __________. (answer in integer) Note: .
Answer: 3
Solution
Best-fit chooses the smallest hole that fits. - P1 (16 KB): smallest hole is 18 KB → leaves a 2 KB hole. - P2 (9 KB): smallest hole is the 9 KB hole → leaves 0 (hole consumed). Resulting holes: 20, 4, 25, 2, 7, 15, 12 KB. Those KB are → .
More GATE PYQ on Memory Management
All GATE CS Operating Systems PYQ →Attempt GATE CS 2026 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →