来看看微软的答案:

 

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。 

相关文章:

  • 2021-11-02
  • 2021-11-08
  • 2021-08-02
  • 2021-12-05
  • 2021-10-15
  • 2019-06-20
  • 2021-08-05
  • 2021-12-16
猜你喜欢
  • 2021-08-02
  • 2021-11-27
  • 2021-12-09
  • 2021-11-29
  • 2021-10-19
  • 2021-08-02
  • 2021-10-25
  • 2021-05-09
相关资源
相似解决方案