一个进程能支程多少个线程
来看看微软的答案:
reference to MSDN:
The number of threads a process can create is limited by the available virtual memory. By default, every thread has one megabyte of stack space. Therefore, you can create at most 2028 threads. If you reduce the default stack size, you can create more threads.
如果采用默认值(线程的堆栈是1M),也就是2028。