Terminate and cause the zombie tasks to be deallocated

Assignment Help Computer Engineering
Reference no: EM1334170

When a child process is fork()ed, a parent may wait for the successful completion of the child via the wait() service (or one of its variants) so that the return result of that application can be read from the process descriptor block.

If the parent does not perform a wait() operation on the child process after it terminates, Unix will keep the process descriptor block active for this application in hopes that eventually the parent will wait() or that the parent will itself terminate.

If you perform the ps command in this scenario, you may find a number of "zombie" processes - these are processes marked with a Z in the output of ps that are children of a currently running parent that hasn't yet waited upon their completion. Normally, this isn't much of a problem, as eventually, the parent will terminate and cause the zombie tasks to be deallocated.

However, in a server application such as the email database server above, this becomes a problem, as the server generally never terminates, and as a result, the system list of process descriptor blocks becomes cluttered by zombies (processes that have properly terminated by haven't been waited upon by the parent).

To avoid this problem, Unix ensures that a terminating child application can send a signal to the parent indicating that it has terminated (SIG_CHILD). The parent should catch this signal, and issue a wait() or one of its variants to clean up the zombied process descriptor block.

For this question, describe the concept of a signal, and indicate how the parent application can be configured to act upon the SIG_CHILD signal from each child as they terminate to avoid the zombie issue.

In your answer, discuss the OS services that Unix provides to support signal processing.

Reference no: EM1334170

Questions Cloud

Explaining future values and present values : Find out the future value of $9,000 at the end of five periods at 8% compounded interest? Find out the present value of $9,000 due eight periods hence, discounted at 11%?
Taking decision regarding replacing looms : SMM has decided to replace one of its looms and has researched the following cost data on replacement looms.
Explain the pros and cons of this marketing idea : Explain the pros and cons of this marketing idea  proposed by the company from the both a financial and non-financial perspective.
Pros and cons of using technology : What do you see as being the pros and cons of using technology? Is it possible to rely too much on technology?
Terminate and cause the zombie tasks to be deallocated : while a child process is fork()ed, a parent may wait for the successful completion of the child via the wait() service (or one of its variants) so that the return result of that application can be read from the process descriptor block.
Treasury bond interest rates : Assume you own the 8% October 2008 treasury bond and it is expected that the market interest rate will increase from 8% to 9% in the next three months.
The processor save in fraction of its visits to keyboard : In an 8-hour interval, an operator controls systems with 60 commands on an average, entered through a keyboard.
Controlling the metadata : Does the Word version you are using provide any control over metadata, can you eliminate it, hide it, reduce it etc?
Determining subprime mortgage crisis : What are the risks which are associated with debt, and why may those risks be unacceptable to the corporation that needs money?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Transcripting the case

The CTO of organization that has requested your services would like for your forensics team prepare a transcript of what you could state to CTO.

  Why would a firm choose one of these approaches

I am having difficulty with the following questions: Differentiate between a two-tier client/server system and a three-tier client/server system. Why would a firm select one of these approaches over the other when implementing a client/server syst..

  Make a math tutor program in vb.net

make a math tutor program in VB.Net.

  What is joptionpane class or the scanner class

What is JOptionPane class or the Scanner class

  Bourne shell and design suitable functions

Bourne shell and design suitable functions

  Define which option you prefer and why

Write down a paper describing the steps involved in publishing a Web site.

  Suspecting the icmp flooding attack

In reviewing your firewall logs, you notice a large number of the ICMP echo requests coming from external host 63.10.100.4. You suspect an attempted ICMP flooding attack. How could you respond.

  Compare productivity based solutions

Microsoft has expended a lot of effort into developing productivity tools for the Web, particularly with the .NET strategy. though, there are many other tools for creating Web solutions.

  Between an open-source or freeware license distribution

As a business owner you are preparing to release a new software game. What factors must you consider to choose between an open-source or freeware license distribution.

  How to produce a data model segment

Some mechanics are specialized in engine (EN) maintenance. Some mechanics are specialized in the airframe (AF) maintenance. Some mechanics are specialized in avionics (AV) maintenance.

  Transmition of the packet

An Ethernet MAC sub layer receives the 1510 bytes of the data from LLC layer. Explain whether the data encapsulation can be within one frame?

  Photoshop cs5 and cs5

Explain the programs that are available in order to edit the images? Explain at least two of the attributes available in the Photoshop CS5 and CS5.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd