Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Linux 上,如何从终端以特定优先级值启动进程?
使用命令nice:
nice
nice -n 15 <command> <argument1> <argument2> …
例如:
nice -n 15 sh -c 'while true; do true; done'
您可以使用renice或nice(查找它们)来降低优先级。要增加你需要root。
renice
root