🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Processes and Threads: all 10 questions

Quiz: Processes and Threads · Question 3 of 10

How many processes exist after a program calls fork() three times in a row?

How many processes exist after a program calls fork() three times in a row?

  1. A.3
  2. B.4
  3. C.6
  4. D.8
Answer & explanation

Correct answer: 8

Each fork doubles the number of processes: 2 × 2 × 2 = 8.

Can you get the rest right without peeking?

Take the timed Quiz: Processes and Threads quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →