Re: Which process is associated with process ID 0 (swapper)

From: Mike Galbraith
Date: Thu Apr 20 2006 - 11:48:07 EST


On Thu, 2006-04-20 at 11:30 -0400, linux-os (Dick Johnson) wrote:

> This must be a trick question. Linux is not VAX/VMS. There is no
> swapper process. Check in /proc. Processes start at 1. Even
> kernel threads have PIDs greater than 1.

include/linux/init_task.h
.pgd = swapper_pg_dir,
.comm = "swapper",

You don't make enough nuclear powered kernels :)

-Mike

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/