Re: process 0

george anzinger (george@mvista.com)
Fri, 23 Aug 2002 13:34:53 -0700


"Richard B. Johnson" wrote:
>
> On Fri, 23 Aug 2002 ic@aleph1.net wrote:
>
> > Hi.
> > Maybe this is a little off topic, but does what is the real status of
> > Process 0 (swapper) ?
> > Some people keep telling me it doesn't exist, but on some kernel crashes
> > I can see "process swapper (pid 0, process nr 0, ...)"
> >
> > Can someone help me ?
>
> Well, it kind-of exists. It's what the CPU does when there is nothing
> else to do. Sort of like:
>
> for(;;)
> schedule();
>
> It's also where it 'goes' if init returns <grin>.

ALSO, FWIW on a N way SMP there will be N process 0s. So
much for unique pids :)

-- 
George Anzinger   george@mvista.com
High-res-timers: 
http://sourceforge.net/projects/high-res-timers/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/