task
Command Function
This command is used to query information about processes and threads.
Syntax
task/task -a
Parameter Description
Table 1 Parameters
Parameter
|
Description
|
Value Range
|
-a
|
Displays all information.
|
N/A
|
Usage
If the parameter is not specified, partial task information is printed by default.
Example
Enter task.
Output
Figure 1 Querying partial task information
![querying-partial-task-information](figures/querying-partial-task-information.png)
Table 2 Output description
Parameter
|
Description
|
PID
|
Indicates the process ID.
|
PPID
|
Indicates the parent process ID.
|
PGID
|
Indicates the process group ID.
|
UID
|
Indicates the user ID.
|
Status
|
Indicates the current task status.
|
CPUUSE10s
|
Indicates the CPU usage within 10 seconds.
|
PName
|
Indicates the process name.
|
TID
|
Indicates the task ID.
|
StackSize
|
Indicates the size of the task stack.
|
WaterLine
|
Indicates the peak value used by the stack.
|
MEMUSE
|
Indicates the memory usage.
|
TaskName
|
Indicates the task name.
|