Hi,
I would like to check if my understanding is correct of how a single script creates new processes.
When the script starts initially it creates a new process. This is the parent process. Then as new processes are spawned within the script they will have a new PID but the PPID will be the same as the PID of the main script.
If anyone of the new processes creates a new process then the new process will have the same PPID as its parent's PID.
Therefore all processes created from within a script will have some sort of Parent\Child relationship.
Is my understanding correct?
Many Thanks
I would like to check if my understanding is correct of how a single script creates new processes.
When the script starts initially it creates a new process. This is the parent process. Then as new processes are spawned within the script they will have a new PID but the PPID will be the same as the PID of the main script.
If anyone of the new processes creates a new process then the new process will have the same PPID as its parent's PID.
Therefore all processes created from within a script will have some sort of Parent\Child relationship.
Is my understanding correct?
Many Thanks