Write a program for the following problems. It is recommended that the programs should be written...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program for the following problems. It is recommended that the programs should be written and run on Ubuntu environment using C/C++. However, students can also use other tools to accomplish the following tasks, such as using Java on Win32 API, etc. Each program must be submitted with the output screen snapshot. a) Create a (child) process that may or may not copy the parent address space and then make the child as a zombie process. Use ps utility to demonstrate that the zombie has been created. Please note that the zombie process will be depicted as . b) Use the procedure followed in 1(a) to make the child process as orphan. Using ps utility to show that the orphan process has been handed over to the init process whose pid is 1. c) Create a child process that execute the following commands from the command line. You can use the exec() family of system calls. a. Is (with switches/parameters, such as > Is -1) b. echo (with a string parameter, such as > echo this is OS class and echo SPATH) c. pwd Hints: you can use manual pages to learn about ps utility in Ubuntu by using command, man ps. Write a program for the following problems. It is recommended that the programs should be written and run on Ubuntu environment using C/C++. However, students can also use other tools to accomplish the following tasks, such as using Java on Win32 API, etc. Each program must be submitted with the output screen snapshot. a) Create a (child) process that may or may not copy the parent address space and then make the child as a zombie process. Use ps utility to demonstrate that the zombie has been created. Please note that the zombie process will be depicted as . b) Use the procedure followed in 1(a) to make the child process as orphan. Using ps utility to show that the orphan process has been handed over to the init process whose pid is 1. c) Create a child process that execute the following commands from the command line. You can use the exec() family of system calls. a. Is (with switches/parameters, such as > Is -1) b. echo (with a string parameter, such as > echo this is OS class and echo SPATH) c. pwd Hints: you can use manual pages to learn about ps utility in Ubuntu by using command, man ps.
Expert Answer:
Related Book For
Auditing a business risk appraoch
ISBN: 978-0324375589
6th Edition
Authors: larry e. rittenberg, bradley j. schwieger, karla m. johnston
Posted Date:
Students also viewed these programming questions
-
A suite of Modula-3 procedures is being developed to handle arbitrarily large nonnegative integers. A test program for handling such numbers includes the following TYPE declaration: TYPE Digit =...
-
ccm1 java attend all . . . r2 e1 e2 box r2 Write sound typing and subtyping rules for these constructs. [5 marks] Now suppose that we add to this calculus the type variables and bounded universal...
-
A posthole digger (the digger) is an agricultural implement manufactured by Alamo/SMC Corporation (SMC) designed, as its name implies, to dig holes in the ground for posts. The digger is...
-
A frustrated store manager is asked to make four different yes-no decisions that have no relation to each other. Because he is impatient to leave work, he flips a coin for each decision. If the...
-
Falling film on a conical surface (see Fig. 2C.5) 7 a fluid flows upward through a circular tube and then downward on a conical surface. Find the film thickness as a function of the distance s down...
-
Consider a binomial model with three dates as introduced at the end of Sect. 6.3 (with \(t \in\{0,1,2\}\) ) and a contingent claim with payoff \(f\left(s_{2} ight)\), where \(s_{2}\) denotes the...
-
Based on what you know about the various documentation techniques, what technique(s) would you propose to the members of the group? How will the technique(s) you proposed overcome some of the...
-
A force at = 4.00 N - 3.00 N is applied to an object at position = 2.00 mi + 3.00 mi. What is the torque about the origin?
-
10 6. 4. 5. 7. PROJECT STEPS Carla Arranga is a senior account manager at Ensight Healthcare Consultants, a consulting firm that works with hospitals, clinics, and other healthcare providers around...
-
3. Rank the following compounds in the order of increasing enthalpy of formation, and briefly EXPLAIN. A B D
-
If the price of milo increases: a. consumers will buy more milo b. consumers will buy less milo c. consumers will buy the same amount of milo d. cannot tell with the information given
-
If a change in the price of apples results in a change in the quantity supplied of oranges, then the goods are: a. own-price elastic b. cross-price elastic c. related d. unrelated
-
If income decreases then the consumption of beef will: a. increase b. decrease c. not change d. not enough information to answer
-
A general infl ation will lead to: a. a decrease in the consumption of beef b. an increase in the consumption of beef c. no change in the consumption of beef d. unemployment
-
Relative to the elasticity of apples, the elasticity of fruit is:. a. more elastic b. less elastic c. the same level of elasticity d. not enough information provided to answer
-
Prepare a projected income statement and statement of financial position for the year ending April 30, 2013 if the Calgary Farmers Market alternative is accepted. Put your calculations/financial...
-
How has the too-big-to-fail policy been limited in the FDICIA legislation? How might limiting the too-big-to-fail policy help reduce the risk of a future banking crisis?
-
What is meant by independence? (a) In fact and (b) In appearance? Give an example of an auditor being independent in fact but not in appearance.
-
How would an auditor go about assessing the quality of an organization's corporate governance? In formulating your answer, consider the possibility that a company may have a good governance structure...
-
Verona Shoe Company is considering automating its credit approval function. It manufactures a brushed pigskin shoe and acts as a wholesaler by buying closeouts of other brands and selling them to...
-
Geneva Ltd has a year end of 30 June for its financial statements. You are provided with the following information relating to rent payable: You are required to: calculate the amount that should be...
-
The following is the trial balance of Cadiz Ltd as at 31 December. You also know that the inventory at 31 December is 380,000. You are required to: prepare an income statement for the year ended 31...
-
The financial year end for Florence Ltd is 31 December 20X7. Calculate the amount charged to the income statement and the balance outstanding (for the balance sheet) in respect of the following...
Study smarter with the SolutionInn App