Created
August 27, 2019 05:49
-
-
Save KuJoe/445bca3099395bf2011db3151e7531d7 to your computer and use it in GitHub Desktop.
Find and set CPU priority
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PID=`ps -ef | grep "PROCESSNAME" | grep -v "grep" | awk '{print $2}'` | |
for i in $PID; do sleep 1; | |
sudo /usr/bin/renice +10 $i; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment