title: How many threads can I spawn using boost in c++?
body: <p>And what happens when I try to spawn too many?</p>
  
  <p>I'm getting the following error when I spawn more than about 900 threads:</p>
  
  <pre><code>terminate called after throwing an instance of 'dining 1
  boost::exception_detail::clone_impl&lt;boost::exception_detail::error_info_injector&lt;boost::thread_resource_error&gt;
   &gt;dining 3
  '
  dining 2
    what():  dining 4
  boost::thread_resource_errordining 3
  </code></pre>
  
  <p>Is this the expected error resulting from attempting to spawn too many threads?</p>