Memory management Interview questions


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

What are the events done by the Kernel after a process is being swapped out from the main memory?

When Kernel swaps the process out of the primary memory, it performs the following:

1. Kernel decrements the Reference Count of each region of the process. If the reference count becomes zero, swaps the region out of the main memory.

2. Kernel allocates the space for the swapping process in the swap device.

3. Kernel locks the other swapping process while the current swapping operation is going on.

4. The Kernel saves the swap address of the region in the region table.




Next 5 interview question(s)

1
What is a Region?
2
What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?
3
What is a Map?
4
What is the main goal of the Memory Management?
5
What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?