Multiple choice

How many child processes are created if two fork () system calls are called?

  1. 4

  2. 3

  3. 5

  4. 2

  5. 1

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

No of child process are (2^n -1), here n is equal to no. of fork () system calls. So, 2^2 - 1 = 4 - 1 = 3 After a new process is created both child and parent processes will execute instruction following fork () system call.