1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
task.md 7.44 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

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

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.

1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助