Gate CS-2008 Question Paper With Solutions

Q. 71 A process executes the following code

for (i = 0; i < n; i++) fork();

The total number of child processes created is

(A) n

(B) 2n – 1

(C) 2n

(D) 2(n+1) – 1

Answer: (B)

Explanation:

Gate CS-2008 Question Paper With Solutions

Learn More:   Gate EC-2020 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here