Default values for System.Threading.ThreadPool.SetMaxThreads
问题 Suppose, I don't set any values explicitly by calling the function: System.Threading.ThreadPool.SetMaxThreads What are the default values? 回答1: It depends on the .NET framework version, changed in 2.0, 3.0 and 4.0. In 2.0 it was 50 times the number of cores. In 3.0 (aka 2.0 SP1) it was 250 times the number of cores, 4.0 made it dynamic depending on bitness and OS resources. Max I/O completion threads was always 1000 if I remember correctly. In general, it is insanely high and a program should