Which job has PID 0 ?

Hi everyone.
I want to know which job has PID 0 ? If I do 'ps -all' cmd why dont I see in terminal.
Thanks in advance .

sched generally has PID 0.

try a ps -ef

:slight_smile:

Thanks Tytalus,
I just now tried ps -ef in cygwin . it showd me PID 1 of a command /usr/bin/bash .
is it you r referring to ?
b t way can u give a short information on sched as i am not aware of it ??

please don't write in "punk" style. this is against the rules of unix.com!

sorry for that style . I apologize .

During kernel initialization, the kernel creates PID 0 ( sched). The sched process is sometimes called the "swapper."

cygwin does not play "fairly" - it does not have processes the way standalone unix does because it is a guest operating system. Under some circumstances it is possible do ps -ef on cygwin and only see your process tree - nothing else.