SetConcurrencyLimit method

Defines the number of threads that can execute from a thread pool at a given time.

Syntax


HRESULT retVal = object.SetConcurrencyLimit(ulNumThreads);

Parameters

ulNumThreads [in]

Type: unsigned long

Number of threads from the thread pool that can concurrently execute. If zero, the number of threads is set to the number of processors in the system.

Remarks

The ulNumThreads parameter is ignored on Windows 95 and Windows 98. It is only a suggestion for Microsoft Windows NT, where it is possible to temporarily exceed the concurrency limit. See the documentation for the IOCompletionPort interface in the MSDN Library's Knowledge Base for details.

See also

IDXTaskManager::GetConcurrencyLimit

 

 

Show: