Tag Info

New answers tagged

2

The nice(2) syscall is changing the relative priority (from what it was before that syscall). But setpriority(2) is changing the absolute priority. So my understanding is that nice(x) (with x being a very small number, e.g. between 0 and 9) is the equivalent of atomically doing: // asssume both getpriority & setpriority syscalls are successful int n = ...


1

It should be enough to modify your ~/.bash_profile so it reads: if [ -f /bin/ksh93 ] then renice -n 4 $$ exec -l /bin/ksh93 fi The renice -n 4 $$ will set the nice value of the current shell ($$) to four, causing subsequent commands launched by that shell to inherit the same niceness value. I have not tested in a tmux session, but it works as ...



Top 50 recent answers are included