title: Total stack sizes of threads in one process
body: <p>I use pthreads_attr_getthreadsizes() to get default stack size of one thread, 8MB on my machine.</p>
  
  <p>But when I create 8 threads and allocate a very large stack size to them, say hundreds of MB, the program crash.</p>
  
  <p>So, I guess, shall </p>
  
  <pre><code>("Number of threads" * "stack size per thread") &lt; a constant value (e.g. virtual memory size)
  </code></pre>
  
  <p>?</p>