fork()

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....

Replies

You are reading an archived discussion.

Related Posts

hello crazy engineers solve these Q1: 1/3 ed of the contents of a container evaporated on the 1 st day. 3/4 th of the remaining contents of the container evaporated...
one of my friend is preparing for civil services and she choose history as optional for both pre exam and main exam .so please help her by telling me the...
Hai Guys............ Please help me.......... Can anyone point out the complete differences between a SERVLET and a PORTLET. Thank you... bye......................................😒😒😒
Everyone has great ideas. Everyone dreams big. When we were kids, we would believe we could change the world. Unfortunately, as we grow up, for most of us, the ideas...
want new ideas 4 projects in elctronics and communication😁