Process ID
Table of Contents
Get by running:
ps
- system call
- current process
getpid()
- parent process
getppid()
- current process
- shell
$$
On Linux, the maximum process ID is given by the pseudo-file /proc/sys/kernel/pid_max
.
Existing PID file can indicate that the process is running or was forcefully shutdown.
Special PIDs #
- $0$ -
swapper
orsched
is responsible for paging, and is actually part of the kernel rather than a normal user-mode process - $1$ - is usually the init process primarily responsible for starting and shutting down the system