202k views
4 votes
What does a process become if it has not exited when its parent exits?

a) Zombie process
b) Orphan process
c) Daemon process
d) Deadlock process

User Tonso
by
8.1k points

1 Answer

2 votes

Final answer:

A process that continues to run after its parent has exited becomes an orphan process. The init system process usually adopts this orphan. This is distinct from a zombie or daemon process, and unrelated to deadlock situations.

Step-by-step explanation:

When a process has not exited when its parent exits, it becomes an orphan process. This occurrence happens in operating systems when a parent process finishes execution, but the child process continues to run. In such cases, the orphaned process is typically adopted by the init process (process ID 1), which then becomes its new parent. An orphan process is different from a zombie process, which is what a process becomes if it has exited, but the parent has not yet performed a wait to collect the termination status.

It is important to distinguish between the types of processes mentioned. A daemon process is a background process typically started at boot and runs continuously without intervention, while a deadlock process refers to a situation where two or more processes are unable to proceed because each is waiting for the other to release resources.

The question about what a cyclic process is, specifically if it's one where the system returns to its original state at the end of the cycle, is also related to Computers and Technology. The correct answer to this would be option a: A cyclic process is a process in which the system returns to its original state at the end of the cycle.

User Gitmo
by
7.7k points