task

Command Function

This command is used to query information about processes and threads.

Syntax

task/task -a

Parameters

Table 1 Parameter description

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

Run task.

Output

Figure 1 Querying partial task information

Table 2 Output

Parameter

Description

PID

Process ID

PPID

Parent process ID

PGID

Process group ID

UID

User ID

Status

Current task status

CPUUSE10s

CPU usage within last 10 seconds

PName

Process name

TID

Task ID

StackSize

Size of the task stack

WaterLine

Peak value of the stack used

MEMUSE

Memory usage

TaskName

Task name