Nice

    Start a process with a priority from -20 (highest) to 19 (lowest)

    nice -n 14 my_cmd

    source

    Change priority of running process

    renice -n NEW_NICE_VALUE -p PROCESS_PID

    Note: if the nice value of the parent process changes after forking the child processes, the child processes do not inherit the new nice value. hack solution