Skip to contentSkip to conversation

process 0

DISCUSSION [email protected] 4 participants 4 messages Aug 23, 2002

lore
Share & tools
lore
#0 lore raw

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 ?

Signature · 5 lines
 Michel Luczak	       <[email protected]>       +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."
#1 lore raw
Quoted 4 lines · On Fri, 23 Aug 2002 [email protected] 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

Signature · 3 lines
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/		http://distro.conectiva.com/
#2 lore raw
In reply to [email protected]
Quoted 7 lines · On Fri, 23 Aug 2002 [email protected] 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.

#3 lore raw
Quoted 11 lines · Richard B. Johnson
Quoted 7 lines · On Fri, 23 Aug 2002 [email protected] 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 ?

Quoted 7 lines

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 :)

Signature · 5 lines
George Anzinger   [email protected]
High-res-timers: 
http://sourceforge.net/projects/high-res-timers/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml