Overlays and Swapping Lecture by Mrs. Deepika Shrivastava
Overlays are made when there is a need of running a program of larger size than the memory allocated to it. A program is broken into overlays say overlay1 and overlay2, now overlay1 is loaded into main memory and overlay2 is still in secondary memory. When overlay1 finishes its execution, it gets overwritten by overlay2 and it gets executed without loading whole program at a time. Swapping in a scheme in which pages from main memory to secondary memory are being swapped in(rolled in) and swapped out(rolled out) as desired during execution of a process.