On 14:57:40, 15.03.16, Alexandre Ratchov wrote: > On Sat, Mar 12, 2016 at 05:36:21PM +0100, Michal Mazurek wrote: > > > > p_usrpri and p_priority will go away, so userland utilities like 'ps' > > will need to be changed. > > > > AFAIU, this would hurt interactive programs (audio, players, games, > etc). Currently i/o bound processes wake up with increased > priority and steal the cpu from cpu-bound processes. Removing > p_priority would break this mechanism.
No, with the new scheduler a process gets assigned a 'deadline' - the value of an arbitrary monotonically increasing timer. If it runs out of ticks it gets a new deadline. The process with the smallest deadline gets to run. If a process goes to sleep, and then after a while wakes up, it will have a smaller deadline than the processes that were allwed to keep running (and thus kept getting new deadlines). It will therefore preempt other tasks. -- Michal Mazurek