Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



How many child processes will be created by following fork() system call?
fork();
fork();
fork();
fork();





Solution

Given: 4 calls to fork().

Formula: Total processes created = 2^n

Calculation:

  • Total processes = 2^4 = 16
  • Child processes = 16 - 1 = 15

Answer: 15 child processes



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...