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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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