GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 41

GATE CSE 2015 Set 2 Q41

Operating Systems · Memory Allocation & Segmentation · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q41 2 marks · MCQ
Report issue

Memory Allocation & Segmentation

Question 41, GATE 2015: Free partitions 200, 400, 600, 500, 300, 250 KB. Allocate processes 357, 210, 468, 491 KB in order using bestfit. Which original partitions stay unused? A200, 300; B200, 250; C250, 300; D300, 400.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Best fit assigns 357 to 400, 210 to 250, 468 to 500, and 491 to 600. Original partitions 200 and 300 remain unused, A. Splitting residual space does not alter these choices.

At each request choose the smallest remaining partition large enough.357 fits 400, 500, 600; choose 400.210 fits 250, 300, 500, 600; choose 250.468 fits 500 or 600; choose 500.491 then uses 600. The unused original partitions are 200 and 300. If partitions are split, the resulting remnants 43, 40, 32 and 109 are all too small to change these subsequent choices, so the answer remains the same.

Original paper, page 40 · Answer key