Process-scheduling-algorithm
March 20, 2024GATE 2018
March 20, 2024Question 12976 – Operating-Systems
How many new processes will be created in case a process executes the following
code:
fork();
fork();
fork();
Correct Answer: B
Question 921 Explanation:
The no. of new processes that will be created using n fork() when given directly is 2^n – 1.
Therefore the required answer is 2^3 – 1 = 7
Therefore the required answer is 2^3 – 1 = 7
9
7
6
8
