# task - [Command Function](#section0533181714106) - [Syntax](#section1014412308101) - [Parameter Description](#section116057158506) - [Usage](#section2053502951112) - [Example](#section12629113381116) - [Output](#section19299103465015) ## 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 ![](figures/querying-partial-task-information.png "querying-partial-task-information") **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.