fork()
@aasthasingh87-LPwKRz
•
Oct 21, 2024
Oct 21, 2024
1.1K
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....