title: creating child processes in parallel
body: <p>Say I have this piece of code</p>
  
  <pre><code>for (int n = 0; n &lt; 4; ++n)
  {
     if (fork())
     {
        // do something
        // if some condition is met
        // kill the parent
        // else, just return 
     }
     else
        printf("cannot get a process\n");
  }
  </code></pre>
  
  <p>Would I be creating 4 child-processes running in parallel? Or would I be creating 4 of them running one after the other (because the loop in the parent won't advance until the child-process returns) ?</p>
  
  <p>Thank you</p>
  
  <p>P.S: I do realise this might be a bad practice (ie., killing the parent from a child causes zombies to go around, but let's ignore that for now!).</p>