I’m writing a program for the Ubuntu distribution that I want to have larger time slices for when running. I understand that messing with time slices may slow my computers response, but I want my computer to run a dedicated services/processes. Ideally when the parent process is destroyed the scheduler would return to normal. How would I accomplish this? Thanks.
Share
You want to use nice(1) and similar tools for setting process priority – possibly real-time scheduling, but I don’t know how well it is implemented in linux.
Positive “Niceness” (upto 20) means lowering priority of the task (and thus less time slices), while negative values (downto -19) make the process more important.
There’s also ionice for I/O priority which might be of interest depending on use case.