title: How to create this process tree using fork()?
body: <p>first of all i would like to ask you how to create this process tree listed below with using only fork() function.</p>
  
  <pre><code>|____1____
  |___2__   |
  |_4_   |  |_3_
  |   |  |  |   |
  
  
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;unistd.h&gt;
  
  int main() {
     if (fork()) {
  </code></pre>
  
  <p>The thing is I don't know what to do next and how it works.</p>