Pete SheillDeveloper on the CLR teamThreadPool throttle- June 8, 2005 As promised, here are the details on how we limit the number of threads being used to perform a background task. The code below was written by Brian Harry. With this class, we can queue up as many requests as we want, but only maxThreads number of them will be active at any given time. So long as maxThreads is smaller than the size of the system thread pool, threads remain available for high-priority tasks such as serving ASP.NET pages or web requests. Given...http://blogs.msdn.com/psheill/archive/2005/06/07/426564.aspx |