UNIX Programming and Technical

Q. What are the entities that are swapped out of the main memory while swapping the process out of the main memory?

A. All memory space occupied by the process, process's u-area, and Kernel stack are swapped out, theoretically. Practically, if the process's u-area contains the Address Translation Tables for the process then Kernel implementations do not swap the u-area.

Read Solution (Total 0)

UNIX Other Question

Q. What do you mean by u-area (user area) or u-block?

A. This contains the private data that is manipulated only by the Kernel. This is local to the Process, i.e. each process is allocated a u-area.
Q. What is Fork swap?

A. fork() is a system call to create a child process. When the parent process calls fork() system call, the child process is created and if there is short of memory then the child process is sent to the read-to-run state in the swap device, and return to the user state without swapping the parent process. When the memory will be available the child process will be swapped into the main memory