Tag Info

New answers tagged


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 = ...

Top 50 recent answers are included