Re: Is a process with a priority of 0 legal ?

From: Rik van Riel (riel@conectiva.com.br)
Date: Thu Sep 07 2000 - 13:41:42 EST


On Thu, 7 Sep 2000 DJBARROW@de.ibm.com wrote:

> If the weight & priority of all runnable processes is 0 then the
> recalculate with recalculate p->counter=0 for all runnable
> processes, & the code will go into a tight loop between the
> goodness calculation & recalculate.

p->priority can never become 0. The minimum value allowed
is 1.

The only way the value could become 0 is when something
scribbles all over memory (and in that case I'd prefer a
hang to possible data corruption).

regards,

Rik

--
"What you're running that piece of shit Gnome?!?!"
       -- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:31 EST