Retrieves the number of idle threads the thread pool maintains in anticipation of new requests.
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SecuritySafeCriticalAttribute> _ Public Shared Sub GetMinThreads ( _ <OutAttribute> ByRef workerThreads As Integer, _ <OutAttribute> ByRef completionPortThreads As Integer _ )
[SecuritySafeCriticalAttribute] public static void GetMinThreads( out int workerThreads, out int completionPortThreads )
Idle threads are maintained by the thread pool in order to reduce the time required to satisfy requests for thread pool threads. Separate minimums are maintained for worker threads and asynchronous I/O threads. Idle threads in excess of the minimums are terminated, to save system resources. Maintenance of the idle threads is a background task.
In Silverlight-based applications, you cannot change the maximum and minimum number of worker threads.
When GetMinThreads returns, the variable specified by workerThreads contains the minimum number of idle worker threads the thread pool maintains, and the variable specified by completionPortThreads contains the minimum number of idle asynchronous I/O threads the thread pool maintains.
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.