This documentation is archived and is not being maintained.

ThreadPool Members

ThreadPool overview

Public Methods

public methodstatic (Shared in Visual Basic)BindHandle Binds an operating system handle to the ThreadPool.
public methodstatic (Shared in Visual Basic)GetAvailableThreads Retrieves the difference between the maximum number of thread pool threads, returned by GetMaxThreads, and the number currently active.
public methodstatic (Shared in Visual Basic)GetMaxThreads Retrieves the number of requests to the thread pool that can be active concurrently. All requests above that number remain queued until thread pool threads become available.
public methodstatic (Shared in Visual Basic)GetMinThreads Retrieves the number of idle threads the ThreadPool maintains in anticipation of new requests.
public methodstatic (Shared in Visual Basic)QueueUserWorkItem

Supported by the .NET Compact Framework.

Overloaded. Queues a method for execution. The method executes when a thread pool thread becomes available.
public methodstatic (Shared in Visual Basic)RegisterWaitForSingleObject Overloaded. Registers a delegate that is waiting for a WaitHandle.
public methodstatic (Shared in Visual Basic)SetMinThreads Sets the number of idle threads the ThreadPool maintains in anticipation of new requests.
public methodstatic (Shared in Visual Basic)UnsafeQueueUserWorkItem Queues a user work item to the thread pool.
public methodstatic (Shared in Visual Basic)UnsafeRegisterWaitForSingleObject Overloaded. Queues the specified delegate to the thread pool.

See Also

ThreadPool Class | System.Threading Namespace

Show: