Skip to content

在Ubuntu下调整进程的优先级 | SparkydogX Blog #121

Description

@sparkydogX

https://sparkydogx.github.io/2018/08/20/priority/

在系统中,我们希望有些进程的优先级可以高一些,有些要低一些。这会决定不同进程占用的CPU时间。下面介绍如何调整优先级。 nice指令当运行一个程序的时候,使用nice指令可以指定优先级。例如,运行nice -n 5 htop会发现htop的优先级降低了。-n参数可以是 -19~20 之间的整数,越低表示优先级越高。当不使用nice指定是,进程的NI值默认为0。需要注意的是,当使用负值参数的时候,需

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions