Hi all, In this article we will learn about, Orphan process in Linux/Unix. How orphan process is created ? Creation of orphan process using python. Usage of python modules - multiprocessing, subprocess Orphan Process :- An orphan process is a child process whose parent got finished or terminated. After the termination of parent process, init process will adopt it. If you look into details, the parent pid(ppid) of an orphan will be 1 which is the pid of init. Sometimes orphan process is intentionally created for certain needs, like if you run an application and you don't want the process created by your application to be killed, even after closing the application. Creation of Orphan process using Python :- Here, we are going to create an orphan process through python code. The logic behind the code is, Create a process using python multiprocessing module and target function will be parent. In parent function another process is spawned, making its target functio
Comments
Post a Comment