Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

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

6 like 0 dislike
Hello
Is the Process before and after the swap are the same in unix? Give reason.
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by sr_webmaster (21,000 points)

1 Answer

1 like 0 dislike
 
Best answer
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.
answered 1 year ago by eagles11 (179,830 points)

Related questions

6 like 0 dislike
1 answer
5 like 0 dislike
1 answer
asked 1 year ago by DBA-boss (120,990 points)
6 like 0 dislike
1 answer
asked 1 year ago by DBA-boss (120,990 points)
6 like 0 dislike
1 answer
10 like 0 dislike
1 answer