If the parent process is terminated before its children, what will the PPID column show in the ps command?

 

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?

  • N/A
  • 0
  • 1
Explanation & Hint:

If the parent process is terminated before its children, the PPID (Parent Process ID) column in the ps command will typically show 1.

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.

For more Questions and Answers:

Endpoints and Systems Post-Assessment | CBROPS

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments