Maximum number of threads in a .NET app?

前端 未结 7 2049
小蘑菇
小蘑菇 2020-11-22 17:43

What is the maximum number of threads you can create in a C# application? And what happens when you reach this limit? Is an exception of some kind thrown?

相关标签:
7条回答
  • 2020-11-22 18:08

    i did a test on a 64bit system with c# console, the exception is type of out of memory, using 2949 threads.

    I realize we should be using threading pool, which I do, but this answer is in response to the main question ;)

    0 讨论(0)
提交回复
热议问题