IDXTaskManager interface
The IDXTaskManager interface enables you to configure the task manager to specify the thread pool size and the thread concurrency limit.
Members
The IDXTaskManager interface inherits from the IUnknown interface. IDXTaskManager also has these types of members:
- Methods
Methods
The IDXTaskManager interface has these methods.
Method | Description |
---|---|
GetConcurrencyLimit | Retrieves the number of threads allowed to execute on a single processor at a given time. |
GetThreadPoolSize | Retrieves the number of threads in the thread pool. |
QueryNumProcessors | Retrieves the number of processors installed in the system. |
ScheduleTasks | Defines a set of tasks to execute. |
SetConcurrencyLimit | Defines the number of threads that can execute from a thread pool at a given time. |
SetThreadPoolSize | Specifies the number of threads to create and make available to execute tasks. |
TerminateRequest | Terminates a task based on its request ID value that was used when the task was scheduled. |
TerminateTasks | Terminates a set of tasks previously scheduled by the task manager. |
Remarks
The task manager is a generic service used to schedule and execute caller-defined tasks. It automatically breaks a transform task into threads and manages their completion, which improves the efficiency of the transform.
The default thread pool size is two threads per processor, and the default concurrency limit is one thread per processor. The default implementation uses input/output completion ports on Microsoft Windows NT to optimize processor utilization.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Dxtrans.h |
IDL |
Dxtrans.idl |
DLL |
Dxtrans.dll |