fork()

AasthaSingh87
@aasthasingh87-LPwKRz Oct 21, 2024

A process executes the following segment of code:


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

The number of processes created is :

a) n

b) n(n+1)/2

c) 2 to the power of n - 1

d) 3 to the power of n - 1

I have a doubt between options c and d ....please help me in resolving the correct answer for dis particular question .... I think it should be d option but somewhere I am not sure ..so please help me with explnation....

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform