top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
275 views
Is the Process before and after the swap are the same? Give reason.
posted Jan 9, 2016 by Sathyasree

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

1 Answer

0 votes

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.

answer Jan 9, 2016 by Shivaranjini
Similar Questions
+1 vote

Assume that the base URL for a Web page is
http://www.example.com/hws/hw1/detail/index.html
Also assume that this page contains the relative URLs
../images/logo-3.gif
/static/images/icon2.jpg
../../header.inc
Give the absolute URL corresponding to the above relative URLs

.................................

  1. Give a complete minimal HTTP GET request corresponding to the URL
    http://www.example.org:8085/samples/okay/well?isThis=right#period
  2. Give a mailto-scheme URL to send e-mail with subject Test Message to a user named Roger at host
    www.example.com.
...