Memory management Interview questions


Total available count: 45
Subject - Operating System
Subsubject - Memory management

Is the Process before and after the swap are the same? Give reason.

Process before swapping is residing in the primary memory in its original form. The regions (text, data and stack) may not be occupied fully by the process, there may be few empty slots in any of the regions and while swapping Kernel do not bother about the empty slots while swapping the process out.

After swapping the process resides in the swap (secondary memory) device. The regions swapped out will be present but only the occupied region slots but not the empty slots that were present before assigning.

While swapping the process once again into the main memory, the Kernel referring to the Process Memory Map, it assigns the main memory accordingly taking care of the empty slots in the regions.




Next 5 interview question(s)

1
What are the events done by the Kernel after a process is being swapped out from the main memory?
2
What is a Region?
3
What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?
4
What is a Map?
5
What is the main goal of the Memory Management?