ThreadPool Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The ThreadPool type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMinThreads Retrieves the number of idle threads the thread pool maintains in anticipation of new requests.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 QueueUserWorkItem(WaitCallback) Queues a method for execution. The method executes when a thread pool thread becomes available.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 QueueUserWorkItem(WaitCallback, Object) Queues a method for execution, and specifies an object containing data to be used by the method. The method executes when a thread pool thread becomes available.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 RegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, Int32, Boolean) Registers a delegate to wait for a WaitHandle, specifying a 32-bit signed integer for the time-out in milliseconds.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 RegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, Int64, Boolean) Registers a delegate to wait for a WaitHandle, specifying a 64-bit signed integer for the time-out in milliseconds.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 RegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, TimeSpan, Boolean) Registers a delegate to wait for a WaitHandle, specifying a TimeSpan value for the time-out.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 RegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, UInt32, Boolean) Registers a delegate to wait for a WaitHandle, specifying a 32-bit unsigned integer for the time-out in milliseconds.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 SetMaxThreads Security Critical. 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 methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 SetMinThreads Security Critical. Sets the number of idle threads the thread pool maintains in anticipation of new requests.

Top