![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Using the Tasks Window (Ada only)Note: This command is only available for Apex Ada and Apex Duo.
The Tasks window displays the tasks comprising the currently running program.
The format of a task in the Tasks window is:
Queue
# Task Name Task Number StatusThread
The Q# column (queue numbers) can have several values. Rn indicates that the task is on the run queue in the nth position. R1 runs next. Dn means that the task is on the delay queue in the nth position. The delay for D1 expires next.
Note: The queue position numbers are only applicable to the Rational Exec micro kernel. They are not displayed when Ada tasking is layered on other OS Threads.
An asterisk (*) indicates the current task (the breakpointed task or the most recent task).
The task that was executing when the program stopped will be indicated by an `*' in the Q# column. Its state will be shown as ready.
An Abnormal in the Q# column indicates the task has been aborted.
The TASK column contains either the name of the task or a T followed by the name of the task type that declared the task. Note that the main program's task has no name and is listed as main program. Also, the runtime defines a task which is used when all other tasks are suspended and the scheduler is waiting for an interrupt event. This task is listed as idle task if it is the breakpointed task. Otherwise, the idle task is not listed.
If the breakpointed task is not an Ada task or the idle task, this task is listed as non-Ada task.
A special signal task is created for each interrupt entry. It is given the name signal sig_num where sig_num is its interrupt vector number.
A special interrupt task is created for each attached ISR. It is given the name interrupt intr_num where intr_num is its interrupt vector number.
The NUM column contains the sequence number assigned to the task. This number is always 1 for the main task and is incremented every time a task is created. This number is used when setting breakpoints for a particular task. The number can also be used with the lt command to specify the task (lt 5). The tcb address of the task can be displayed by getting a full listing of the task using the lt task command.
The STATUS column shows the state of each task and additional information for some states. Times displayed are absolute time, which start with 0 unless the timer is reset via the package Calendar or package Xcalendar. The time must match Calendar.Clock. The possible states for each task are listed in Using the Apex Debugger.
A more detailed description of tasks can be found in Using the Apex Debugger.
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2001, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |