The overlay tree for a program is as shown below:

What will be the size of the partition (in physical memory) required to load (and run) this program?
View worked solution
Answer: B
In an overlay structure, only the modules lying on a single active path from the root to a leaf need to reside in the physical memory simultaneously. Therefore, the minimum size of the physical memory partition required is the maximum sum of module sizes along any root-to-leaf path.
The overlay tree consists of the following paths and their respective memory requirements:
- Path 1:
- Path 2:
- Path 3:
- Path 4:
The maximum memory required by any path is . Thus, a partition of size 14 KB is required to run this program.
Free practice · Your answers on this page are not saved.
