How does PID 1 differ from other processes?
IntermediateConceptBoot Process & Kernel
Answer
PID 1 is started by the kernel and must never exit; if it dies the kernel panics. It adopts orphaned processes and must reap them to prevent zombies. The kernel also does not deliver signals to PID 1 for which it has not installed a handler, so kill -9 1 does nothing. On the host that is systemd; inside a container it is whatever the entrypoint is.
More on Boot Process & Kernel
Walk through the Linux boot process from power-on to login prompt.BeginnerWhat is the difference between BIOS and UEFI booting?IntermediateWhat does GRUB2 do and where is its configuration?BeginnerWhat is the initramfs and why is it needed?AdvancedHow do you view and change kernel command-line parameters?IntermediateWhat is systemd and why did it replace SysV init?Beginner