I need to change the nice value of a process, but not sure how to do it.
My process has a priority of 0 when it is launched , i need to decrease it to some +ve value.
I know we use
os.system("renice -n value -p pidof process").
to change, but not sure whether to change the value before launching the process or after launching the process.
Any help is very much appreciated.