In: Computer Science
A parent may terminate the execution of one of its children. What are the reasons?
The child has exceeded its usage of some of the resources that it has been allocated. This requires the parent to have a mechanism to inspect the state of its children. The task assigned to the child is no longer required.The parent is exiting, and the operating system does not allow a child to continue if its parent terminates. On such a system, if a process terminates either normally or abnormally, then all its children must also be terminated.
This marvel alluded to as cascading end, is regularly started by the working framework. Considering an illustration from UNIX, we are able end a prepare by utilizing the exitsystem call, its parent prepare may hold up for the end of a child handle by utilizing the wait framework call. The hold up framework call returns the method identifier of a ended child, so that the parent can tell which of its conceivably numerous children has ended. In case the parent ends in any case all its children have relegated as their unused parent, the initprocess. Hence the children still have a parent to gather their status and execution insights.
if you have any doubt then please ask me without any hesitation in
the comment section below , if you like my answer then please
thumbs up for the answer , before giving thumbs down please discuss
the question it may possible that we may understand the question
different way and i can edit and change the answers if you argue,
thanks :)