title: Why does a single thread exception crash entire program (how to prevent this?)
body: <p>If I run, for example,</p>
  
  <pre><code>int x = *(0x00000);
  </code></pre>
  
  <p>The program crashes. But why does the whole program crash instead of that single thread? I created multiple threads that just sleep continuously to test this out. Is there any way to make only the current thread exit, not the whole program (on windows using winapi)?</p>
  
  <p>Thanks.</p>