On Thu, Aug 05, 2021 at 08:02:11PM +0200, Rocky Hotas wrote: > Shouldn't then init be that process launched by init_main.c? Instead, I > found: > > $ ps -aux -p 0 > USER PID %CPU %MEM VSZ RSS TTY STAT STARTED TIME COMMAND > root 0 0.0 0.2 0 15172 ? OKl Mon10AM 9:57.64 [system] > > $ ps -aux -p 1 > USER PID %CPU %MEM VSZ RSS TTY STAT STARTED TIME COMMAND > root 1 0.0 0.0 22700 1244 ? Is Mon10AM 0:00.01 init
Init is the first userland process created by init_main (and it gets PID 1). All kernel threads have PID 0 (and there are quite a few nowadays). Martin
