LFCS · Question #778
Which of the following is the process ID number of the init program?
The correct answer is C. 1. The init program (or systemd in modern systems) is the first user-space process launched by the Linux kernel and is always assigned a Process ID (PID) of 1.
Question
Options
- A-1
- B0
- C1
- DIt is different with each reboot.
- EIt is set to the current run level.
How the community answered
(53 responses)- A6% (3)
- C91% (48)
- D2% (1)
- E2% (1)
Why each option
The `init` program (or `systemd` in modern systems) is the first user-space process launched by the Linux kernel and is always assigned a Process ID (PID) of 1.
Process IDs are non-negative integers; -1 is not a valid PID.
PID 0 is reserved for the kernel's scheduler process (swapper/idle), not the `init` process.
The `init` process is the direct ancestor of all other processes on a Linux system, being the very first user-space process started by the kernel. By convention and design, it is always assigned the Process ID (PID) 1.
The PID of `init` is consistently 1 across all reboots of a Linux system.
The PID of `init` is fixed at 1 and is independent of the system's current run level, though `init` manages run level transitions.
Concept tested: Linux process management and init PID
Source: https://man7.org/linux/man-pages/man8/init.8.html
Topics
Community Discussion
No community discussion yet for this question.