Question 1106 – Memory-Devices
May 17, 2024HCU PHD CS MAY 2015
May 18, 2024Question 909 – Fork
The process executes the following code and after execution ____ number of child process get created.
fork();
fork();
fork();
fork();
Correct Answer: C
Question 1 Explanation:
Step-1: The number of child processes of “n” fork() system calls are 2n-1.
Step-2: Total 4 fork() system calls. It means n=4
= 2n-1
= 24-1
= 15
Step-2: Total 4 fork() system calls. It means n=4
= 2n-1
= 24-1
= 15
4
1
15
16