public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* process 0
@ 2002-08-23 12:11 ic
  2002-08-23 12:26 ` Rik van Riel
  2002-08-23 12:56 ` Richard B. Johnson
  0 siblings, 2 replies; 4+ messages in thread
From: ic @ 2002-08-23 12:11 UTC (permalink / raw)
  To: linux-kernel

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 ?

-- 
 Michel Luczak	       <michel@speka.net>       +33 6 62 71 37 30
 SpeKa|Networks SARL			http://speka-networks.com
!----------------------------------------------------------------!
        "Y'en a 240 comme celui là au dessus de nos têtes. 
        12 orbites différentes. 20 satellites par orbite."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: process 0
  2002-08-23 12:11 process 0 ic
@ 2002-08-23 12:26 ` Rik van Riel
  2002-08-23 12:56 ` Richard B. Johnson
  1 sibling, 0 replies; 4+ messages in thread
From: Rik van Riel @ 2002-08-23 12:26 UTC (permalink / raw)
  To: ic; +Cc: linux-kernel

On Fri, 23 Aug 2002 ic@aleph1.net wrote:

> 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, ...)"

It's the idle task.  Only exists to keep the CPU occupied when
nothing else wants to run.

Rik
-- 
Bravely reimplemented by the knights who say "NIH".

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: process 0
  2002-08-23 12:11 process 0 ic
  2002-08-23 12:26 ` Rik van Riel
@ 2002-08-23 12:56 ` Richard B. Johnson
  2002-08-23 20:34   ` george anzinger
  1 sibling, 1 reply; 4+ messages in thread
From: Richard B. Johnson @ 2002-08-23 12:56 UTC (permalink / raw)
  To: ic; +Cc: linux-kernel

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

Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: process 0
  2002-08-23 12:56 ` Richard B. Johnson
@ 2002-08-23 20:34   ` george anzinger
  0 siblings, 0 replies; 4+ messages in thread
From: george anzinger @ 2002-08-23 20:34 UTC (permalink / raw)
  To: root; +Cc: ic, linux-kernel

"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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-23 20:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-23 12:11 process 0 ic
2002-08-23 12:26 ` Rik van Riel
2002-08-23 12:56 ` Richard B. Johnson
2002-08-23 20:34   ` george anzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox