title: Which of the following instructions exit from all process?
body: <p>I'm a little bit confused about when the all process exit:</p>
  
  <ol>
  <li>When the main thread exits - do we exit from all process? </li>
  <li>When one of the threads calls <code>exit(1)</code> - <em>do we exit exit from all process?</em></li>
  <li><p>When one of the threads calls <code>return 0</code> - <em>do we exit exit from all process?</em></p>
  
  <p><em>Is it different if the main thread calls it or another thread?</em></p></li>
  <li>When one of the threads calls <code>return NULL</code> - <em>do we exit exit from all process?
  Is it different if the main thread calls it or another thread?</em></li>
  </ol>