Re: [patch] agv_slice not initialized

MOLNAR Ingo (mingo@chiara.csoma.elte.hu)
Tue, 5 Jan 1999 00:24:32 +0100 (CET)


On Tue, 5 Jan 1999, Chris Wedgwood wrote:

> On Sun, Jan 03, 1999 at 11:31:35PM +0100, MOLNAR Ingo wrote:
>
> > i have left it that way on purpose. There is no reason to assume
> > that the timeslice will get smaller after a fork. If we do anything
> > like that then we should reset the _parent's_ timeslice ... (thats
> > the typical fork() usage pattern: parent forks a child and goes
> > sleeping [ie. waiting for results] shortly afterwards).
>
> sounds like it could be abused -- sprinkle your code with losts of
> little
>
> if(!fork())
> exit();
>
> snippets everywhere -- and you'll end up getting way to much cpu
> compared to otehr processes.

no, it's just a 'hint', and only for the SMP case (currently). It does not
change the amount of CPU time a process gets, it just tries to guess
wether to change CPUs right now.

-- mingo

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