Last Updated on November 17, 2023 by InfraExam
If the parent process is terminated before its children, what will the PPID column show in the ps command?
|Explanation & Hint:
If the parent process is terminated before its children, the PPID (Parent Process ID) column in the
In Unix-like operating systems, when a parent process terminates before its children, the orphaned child processes are typically adopted by the init process, which has a process ID (PID) of 1. As a result, the PPID of these orphaned child processes becomes 1 to indicate that they are now under the care of the init process.