I\'m trying to write a program that automatically sets process priorities based on a configuration file (basically path - priority pairs).
I thought the best solution wo
If you've settled for a polling solution, most of the features you want to implement already exist in the Automatic Nice Daemon. You can configure nice levels for processes based on process name, user and group. It's even possible to adjust process priorities dynamically based on how much CPU time it has used so far.