Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ThreadPool Methods

The methods of the ThreadPool class are listed here. For a complete list of ThreadPool class members, see the ThreadPool Members topic.

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:
© 2017 Microsoft