GeekInterview.com
Series: Subject: Topic:
Question: 16 of 45

What is a zombie?

Asked by: nancyphilips | Member Since Jul-2006 | Asked on: Apr 16th, 2007

View all questions by nancyphilips   View all answers by nancyphilips

Showing Answers 1 - 2 of 2 Answers
sanjay

Answered On : May 25th, 2007

A zombie is a process whose parent has exited but the child has not.

Yes  1 User has rated as useful.
  
Login to rate this answer.
thanigaivelb

Answered On : Mar 5th, 2009

View all answers by thanigaivelb

A zombie process is a process that completed execution but still in process table.

When a process ends, all of the memory and resources associated with it are deallocated so they can be used by other processes. However, the process's entry in the process table remains. The parent can read the child's exit status by executing the wait system call, at which stage the zombie is removed

After the zombie is removed, its process ID and entry in the process table can then be reused. However, if a parent fails to call wait, the zombie will be left in the process table. In some situations this may be desirable, for example if the parent creates another child process it ensures that it will not be allocated the same process ID.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.