Created
January 2, 2019 23:23
-
-
Save melvyniandrag/331f146e6addefed713bc6607cbc1c50 to your computer and use it in GitHub Desktop.
Niceness Experiement
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
x = 1 | |
while(True): | |
x+=1 |
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
#!/bin/bash | |
for i in `seq 1 100`; do | |
python hog.py & | |
last_pid=$! | |
renice -n -20 -p $last_pid | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment