title: What does stack size in a thread define in C++?
body: <p>I'm using C++ and Windows.h in my source code. I read the CreateThread API in <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms682453%28v=vs.85%29.aspx" rel="noreferrer">MSDN</a>, but I still don't understand the essence of specifying stack size. By default it is 1 MB. But what will happen if I specify 32 bytes?</p>
  
  <p>What does stack size in a thread define?</p>
  
  <p>Please provide a thorough explanation and I'll appreciate it. Thanks.</p>