Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. A process executes the following code for (i = 0 ; i < n; i ++) for ();
    The total number of child processes created is
    1. n
    2. 2n – 1
    3. 2n
    4. 2n + 1 – 1
Correct Option: B

We know that the total number of processes is 2n but we subtract the main process therefore, total number of children = 2(n – 1) .



Your comments will be displayed only after manual approval.