reopened by
968 views
0 votes
0 votes

A process executes the following code

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

The total number of child processes created is

  1. $n^2$
  2. $2^{n+1}-1$
  3. $2^n$
  4. $2^{n}-1$
reopened by

Please log in or register to answer this question.

Answer:

Related questions

6 votes
6 votes
2 answers
1
gatecse asked Dec 17, 2017
3,193 views
A counting semaphore was initialized t o $7$. Then $\text{20 P (wait)}$ operations and$\text{x V (signal)}$ operations were completed on this semaphore. If the final valu...
2 votes
2 votes
1 answer
3
gatecse asked Dec 17, 2017
2,971 views
Consider the following table :$\begin{array}{|l|l|l|} \hline \textbf{A.} & \text{Activation record} & \textbf{p.} & \text{Linking loader} \\\hline \textbf{B.} & \text{Loc...