1.

What is the PID of the first process that is set up when the system is booted?(a) 1(b) 0(c) any(d) 2I had been asked this question during an interview.This interesting question is from Process Basics in portion The Process of Unix

Answer»

Correct ANSWER is (B) 0

To explain: EVERY process has a parent process, we can’t have any orphaned process for a longer time. The ancestry of every process is ultimately traced to the first process (PID 0) that is set up when the system is booted. It’s LIKE the root DIRECTORY of the system.



Discussion

No Comment Found

Related InterviewSolutions