GATE CS 2012 · Question 8 · Operating System · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

A process executes the code
fork(); fork(); fork();
The total number of child processes created is

  1. (A) 3
  2. (B) 4
  3. (C) 7
  4. (D) 8
Answer

Answer (C)

Answer from the official GATE CS 2012 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes