top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
358 views
What are the events done by the Kernel after a process is being swapped out from the main memory?
posted Jan 9, 2016 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.
answer Jan 9, 2016 by Shivaranjini
Similar Questions
+2 votes

Can someone explain in layman language with example...

+1 vote

As far as i know when a process is created, 8MB of stack is allocated to it.
Is it right?

If not then is there any fix size or not?

If yes then please answer and Help To solve this question also.

...