ThreadPool Methods

 

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticBindHandle(IntPtr)

Obsolete.Binds an operating system handle to the ThreadPool.

System_CAPS_pubmethodSystem_CAPS_staticBindHandle(SafeHandle)

Binds an operating system handle to the ThreadPool.

System_CAPS_pubmethodSystem_CAPS_staticGetAvailableThreads(Int32, Int32)

Retrieves the difference between the maximum number of thread pool threads returned by the GetMaxThreads method, and the number currently active.

System_CAPS_pubmethodSystem_CAPS_staticGetMaxThreads(Int32, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticGetMinThreads(Int32, Int32)

Retrieves the minimum number of threads the thread pool creates on demand, as new requests are made, before switching to an algorithm for managing thread creation and destruction.

System_CAPS_pubmethodSystem_CAPS_staticQueueUserWorkItem(WaitCallback)

Queues a method for execution. The method executes when a thread pool thread becomes available.

System_CAPS_pubmethodSystem_CAPS_staticQueueUserWorkItem(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.

System_CAPS_pubmethodSystem_CAPS_staticRegisterWaitForSingleObject(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.

System_CAPS_pubmethodSystem_CAPS_staticRegisterWaitForSingleObject(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.

System_CAPS_pubmethodSystem_CAPS_staticRegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, TimeSpan, Boolean)

Registers a delegate to wait for a WaitHandle, specifying a TimeSpan value for the time-out.

System_CAPS_pubmethodSystem_CAPS_staticRegisterWaitForSingleObject(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.

System_CAPS_pubmethodSystem_CAPS_staticSetMaxThreads(Int32, Int32)

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.

System_CAPS_pubmethodSystem_CAPS_staticSetMinThreads(Int32, Int32)

Sets the minimum number of threads the thread pool creates on demand, as new requests are made, before switching to an algorithm for managing thread creation and destruction.

System_CAPS_pubmethodSystem_CAPS_staticUnsafeQueueNativeOverlapped(NativeOverlapped*)

Queues an overlapped I/O operation for execution.

System_CAPS_pubmethodSystem_CAPS_staticUnsafeQueueUserWorkItem(WaitCallback, Object)

Queues the specified delegate to the thread pool, but does not propagate the calling stack to the worker thread.

System_CAPS_pubmethodSystem_CAPS_staticUnsafeRegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, Int32, Boolean)

Registers a delegate to wait for a WaitHandle, using a 32-bit signed integer for the time-out in milliseconds. This method does not propagate the calling stack to the worker thread.

System_CAPS_pubmethodSystem_CAPS_staticUnsafeRegisterWaitForSingleObject(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. This method does not propagate the calling stack to the worker thread.

System_CAPS_pubmethodSystem_CAPS_staticUnsafeRegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, Object, TimeSpan, Boolean)

Registers a delegate to wait for a WaitHandle, specifying a TimeSpan value for the time-out. This method does not propagate the calling stack to the worker thread.

System_CAPS_pubmethodSystem_CAPS_staticUnsafeRegisterWaitForSingleObject(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. This method does not propagate the calling stack to the worker thread.

Return to top
Show: