Question

In: Computer Science

A parent may terminate the execution of one of its children. What are the reasons?

A parent may terminate the execution of one of its children. What are the reasons?

Solutions

Expert Solution

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 :)


Related Solutions

What are the six major categories of factors that may influence the decision to terminate a...
What are the six major categories of factors that may influence the decision to terminate a project early? Provide examples of each.
4) an AaBb parent and an aabb parent produce children in these ratios: 20% AaBb 30%...
4) an AaBb parent and an aabb parent produce children in these ratios: 20% AaBb 30% Aabb 30% aaBb 20% aabb a) If they had a total of 10 offspring, how many of each offspring type would the above percentages represent, and what chi-square value would you get if you assumed simple mendelian inheritance? The 5% chi-square significance cutoff for 3 degrees of freedom is 7.815. Using this, is the data a good fit to Mendelian expectations. ​​​​​b) Now suppose...
Select one of the following groups and describe the reasons it may be likely to experience...
Select one of the following groups and describe the reasons it may be likely to experience groupthink. What strategies would you suggest the group take to avoid groupthink (be specific to the group and apply the strategies rather than simply listing them)? A cult College Greek organizations A sports team A company whose product is failing An activist group
A researcher is interested in how income of a parent effects the income of their children....
A researcher is interested in how income of a parent effects the income of their children. They gather data from surveys about household income and they find that from a small sample the following data is true. The left column is the monthly income of person in the thousands and the right is their parent’s average monthly income between the two parents. Children’s income Parent’s income average 7 4 7 4 10 3 12 2 6 3 9 1 11...
(a) How many ways can a parent distribute five one-dollar bills to her three children? (b)...
(a) How many ways can a parent distribute five one-dollar bills to her three children? (b) How many ways can she accomplish this if each child gets at least one dollar? The answers are 21 and 6 I just need the work
What reasons may cause a 501(c)(3) public charity to lose its tax-exempt status? What is the...
What reasons may cause a 501(c)(3) public charity to lose its tax-exempt status? What is the process of for an organization to regain its tax-exempt status once it is lost?
A parent company may dispose all or part of its subsidiary’s shares during a financial year....
A parent company may dispose all or part of its subsidiary’s shares during a financial year. Give a detailed discussion on the appropriate accounting treatment for the disposal of subsidiary’s shares. In particular, you should analyse this one scenarios: (1) the parent company remains control over the subsidiary after the disposal Provide examples to show (with journal entries and calculations) how the disposal should be presented in the parent’s separate financial statements and in the group’s consolidated financial statements. Ignore...
die's job is to output an error message alarmingly and terminate the program. You may copy...
die's job is to output an error message alarmingly and terminate the program. You may copy my function definition, or use your own: // The following 4 lines should be present if we have a die function: #include <iostream> // cout, endl #include <string> // string #include <cstdlib> // exit, EXIT_FAILURE using namespace std; bool die(const string & msg){ cout <<"Fatal error: " <<msg <<endl; exit(EXIT_FAILURE); } 4. Use rand to randomly choose one of the five operators * /...
Julie was divorced on December 1, 2017 and is the custodial parent of the children. She...
Julie was divorced on December 1, 2017 and is the custodial parent of the children. She receives alimony from her spouse which she uses to maintain the household for her and her children. The divorce decree states that her husband will take the dependents and she signs form 8332 accordingly. She has no other dependents for tax purposes. What is her optimal filing status and number of dependents in 2017?
A subsidiary made sales of inventory to its parent at a profitthis year. The parent,...
A subsidiary made sales of inventory to its parent at a profit this year. The parent, in turn, sold all but 20 percent of the inventory to unaffiliated companies, recognizing a profit. The amount that should be reported as cost of goods sold in the consolidated income statement prepared for the year should be:A. the amount reported as intercompany sales by the subsidiary.B. the amount reported as intercompany sales by the subsidiary minus unrealized profit in the ending inventory of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT