πŸ“Š Linux
Q. A user issues the following sequence of commands:

If the user kills the bash process, then which of the following statements is true?
Code:
$ c.out
$ bash
$ c.out
  • (A) The second “c.out” process is also completed
  • (B) The second “c.out” process becomes an orphan process
  • (C) The first “c.out” process becomes a zombie process
  • (D) The init process becomes the parent of the second “c.out” process
πŸ’¬ Discuss
βœ… Correct Answer: (D) The init process becomes the parent of the second “c.out” process

Explanation: When a process dies, its children are adopted by init, so you’ll see a lot of processes with parent 1 on a typical system.

Explanation by: Mr. Dubey
When a process dies, its children are adopted by init, so you’ll see a lot of processes with parent 1 on a typical system.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
192
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate