GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 2.16

Maximum resident overlay path

Operating Systems · Memory Allocation & Segmentation · Full GATE CSE 1998 paper

GATE 1998, Q2.16 2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Memory Allocation & Segmentation

Question 2.16, GATE 1998: Overlay tree: root 2 KB; children A 4, B6, C8; A has D6, E8; B has F2; C has G4. Minimum partition size among 12, 14, 10, 8 KB?
Question 2.16, GATE 1998: Overlay tree: root 2 KB; children A 4, B6, C8; A has D6, E8; B has F2; C has G4. Minimum partition size among 12, 14, 10, 8 KB?
Tap to enlarge
Your answer
Answer & solution

Answer: B: 14 KB (no official key was published)

Only one sibling overlay branch needs to coexist at a time, but a descendant must coexist with its ancestors. Compute root-to-leaf sums: root-A-D=2+4+6=12; root-A-E=2+4+8=14; root-B-F=2+6+2=10; root-C-G=2+8+4=14 KB. The largest is 14 KB, so B. Summing every module would ignore overlay sharing; allocating only the largest individual module would omit resident ancestors. Module sizes were cross-checked in the clearer alternate diagram.

Original paper, page 5