Multiple choice

Which of these is not true for the fork() system call?

  1. When a process forks, it creates a copy of itself.

  2. Both parent and child processes always share the same address space.

  3. The system call takes no arguments.

  4. Negative return value means an unsuccessful atempt to create a child.

  5. Forking is an important part of Unix.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The fork operation creates a separate address space for the child. The child process has an exact copy of all the memory segments of the parent process. If copy-on-write semantics are implemented,  actual physical memory may not be assigned.