发布网友 发布时间:2022-04-24 21:07
共1个回答
热心网友 时间:2022-04-18 11:01
如果您使用的是linux / unix平台,则可以使用nice来降低进程的优先级.
这只有在最大化的cpu时才有用.例如,如果您正在等待磁盘/交换I / O,那么真的无济于事.
NICE(1) User Commands NICE(1)
NAME
nice - run a program with modified scheling priority
SYNOPSIS
nice [OPTION] [COMMAND [ARG]...]
DESCRIPTION
Run COMMAND with an adjusted niceness, which affects process schel‐
ing. With no COMMAND, print the current niceness. Nicenesses range
from -20 (most favorable scheling) to 19 (least favorable).
对于Windows,请尝试the START command