![]() |
MPTaskInfo |
Header: Multiprocessing.h |
Contains information about a task.
struct MPTaskInfo { PBVersion version; OSType name; OSType queueName; UInt16 runState; UInt16 lastCPU; UInt32 weight; MPProcessID processID; AbsoluteTime cpuTime; AbsoluteTime schedTime; AbsoluteTime creationTime; ItemCount codePageFaults; ItemCount dataPageFaults; ItemCount preemptions; MPCpuID cpuID; MPOpaqueID blockedObject; MPAddressSpaceID spaceID; LogicalAddress stackBase; LogicalAddress stackLimit; LogicalAddress stackCurr; };
The version of this data structure.
The name of the task.
A four-byte code indicating the status of the queue waiting on the task. This field can contain any of the following values:
'SEMA' - waiting on a semaphore
'MSGQ' - waiting on a message queue
'CRGN' - waiting on a critical region
'EVNT' - waiting on an event group
'DBUG' - task is suspended
'DLYQ' - waiting on a synchronous delay
'RDYQ' - on the ready queue
The current state of the task (running, ready, or blocked).
The address of the last processor that ran this task.
The weighting assigned to this task.
The ID of the process that owns this task.
The accumulated CPU time used by the task.
The time when the task was last scheduled.
The time when the task was created.
The number of page faults that occurred during code execution.
The number of page faults that occurred during data access.
The number of times this task was preempted.
The ID of the last processor that ran this task.
If you specify the kMPTaskStateTaskInfo constant when calling the function MPExtractTaskState, Multiprocessing Services returns state information in an MPTaskInfo structure.
Introduced with Multiprocessing Services 2.1.
© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)