# renice

修改正在运行的进程的调度优先级

## 补充说明

**renice命令** 可以修改正在运行的进程的调度优先级。预设是以程序识别码指定程序调整其优先权，您亦可以指定程序群组或用户名称调整优先权等级，并修改所有隶属于该程序群组或用户的程序的优先权。只有系统管理者可以改变其他用户程序的优先权，也仅有系统管理者可以设置负数等级。

### 语法

```
renice(选项)(参数)
```

### 选项

```
-g：指定进程组id；
-p<程序识别码>：改变该程序的优先权等级，此参数为预设值。
-u：指定开启进程的用户名。
```

### 参数

进程号：指定要修改优先级的进程。

### 实例

将行程id为987及32的行程与行程拥有者为daemon及root的优先序号码加1：

```
renice 1 987 -u daemon root -p 32
```

注意：每一个行程都有一个唯一的id。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/renice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
