title: Will main() catch exceptions thrown from threads?
body: <p>I have a pretty large application that dynamically loads shared objects and executes code in the shared object. As a precaution, I put a try/catch around almost everything in <code>main</code>. I created a catch for 3 things: <code>myException</code> (an in house exception), <code>std::exception</code>, and <code>...</code> (catch all exceptions).</p>
  
  <p>As part of the shared objects execution, many <code>pthreads</code> are created. When a thread throws an exception, it is not caught by <code>main</code>. Is this the standard behavior? How can I catch all exceptions, no matter what thread they are thrown from?</p>