Is the after and before swapping Process are similar

Is the after and before swapping Process are similar or not? State the cause also?

E

Expert

Verified

Process before swapping is residing in the primary memory in its real form. The regions (or data, text and stack) might not be occupied fully by the process, there might 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 or secondary memory device. The regions swapped out will be current however only the occupied region slots but not the empty slots which were current before assigning.

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

   Related Questions in Basic Computer Science

©TutorsGlobe All rights reserved 2022-2023.