Logo 
Search:

Unix / Linux / Ubuntu FAQ

Submit Interview FAQ
Home » Interview FAQ » Unix / Linux / UbuntuRSS Feeds

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

  Shared By: Adah Miller    Date: Jan 25    Category: Unix / Linux / Ubuntu    Views: 213

Answer:

When Kernel swaps the process out of the primary memory, it performs the following:
• 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,
• Kernel allocates the space for the swapping process in the swap device,
• Kernel locks the other swapping process while the current swapping operation is going on,
• The Kernel saves the swap address of the region in the region table.

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: