.NET Framework Class Library
ThreadPool Members
Provides a pool of threads that can be used to post work items, process asynchronous I/O, wait on behalf of other threads, and process timers.
The following tables list the members exposed by the ThreadPool type.
Public Methods
| Name | Description | |
|---|---|---|
| BindHandle | Overloaded. Binds an operating system handle to the ThreadPool. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetAvailableThreads | Retrieves the difference between the maximum number of thread pool threads, returned by GetMaxThreads, and the number currently active. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| 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. |
| GetMinThreads | Retrieves the number of idle threads the thread pool maintains in anticipation of new requests. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| QueueUserWorkItem | Overloaded. Queues a method for execution. The method executes when a thread pool thread becomes available. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| RegisterWaitForSingleObject | Overloaded. Registers a delegate that is waiting for a WaitHandle. |
| SetMaxThreads | Sets 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. |
| SetMinThreads | Sets the number of idle threads the thread pool maintains in anticipation of new requests. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| UnsafeQueueNativeOverlapped | Queues an overlapped I/O operation for execution. |
| UnsafeQueueUserWorkItem | Registers a delegate to wait for a WaitHandle. |
| UnsafeRegisterWaitForSingleObject | Overloaded. Queues the specified delegate to the thread pool. |
See Also
Reference
ThreadPool ClassSystem.Threading Namespace
Other Resources
Threads and ThreadingThe Managed Thread Pool