Export (0) Print
Expand All
2 out of 6 rated this helpful - Rate this topic

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 ThreadPool type exposes the following members.

  NameDescription
Public method Static member BindHandle Overloaded. Binds an operating system handle to the ThreadPool.
Public method Static member GetAvailableThreads Retrieves the difference between the maximum number of thread pool threads returned by the GetMaxThreads method, and the number currently active.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework 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 method Static member GetMinThreads Retrieves the number of idle threads the thread pool maintains in anticipation of new requests.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework QueueUserWorkItem Overloaded. Queues a method for execution. The method executes when a thread pool thread becomes available.
Public method Static member RegisterWaitForSingleObject Overloaded. Registers a delegate that is waiting for a WaitHandle.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework 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.
Public method Static member SetMinThreads Sets the number of idle threads the thread pool maintains in anticipation of new requests.
Public method Static member UnsafeQueueNativeOverlapped Queues an overlapped I/O operation for execution.
Public method Static member UnsafeQueueUserWorkItem Queues the specified delegate to the thread pool, but does not propagate the calling stack to the worker thread.
Public method Static member UnsafeRegisterWaitForSingleObject Overloaded. Registers a delegate to wait for a WaitHandle.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.