|
Setting a Script's CPU Priority
I have two scripts running on my server,
- the server-side script which handles all incoming traffic
- a server manager which automatically makes backups, configures my IP, reboots the server, etc...
The server-side script has been reconfigured through CherryPy to only take up 3-4 CPU cycles. Python by default will take up all the remaining CPU cycles.
This raises a problem. My server manager takes up %96 of my CPU, doing nothing but waiting for a checkpoint while my server-side script slowly fulfills the main purpose of the computer.
How would I flip these CPU priorities around, making CherryPy by default take up the remaining cycles (instead of 3-4), and Python only take up 3-4?
|