The GATE Grind

GATE 2008 CS – Question 66

Operating System · System Calls, Processes, Threads and IPC · 2 marks · Multiple choice

A process executes the code below. How many child processes are created?

for(i=0;i<n;i++) fork();
  1. n
  2. $2^n-1$
  3. $2^n$
  4. $2^{n+1}-1$

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) $2^n-1$

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More System Calls, Processes, Threads and IPC questions

All System Calls, Processes, Threads and IPC questions →