Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1808838
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:18:58+00:00 2026-05-17T06:18:58+00:00

I’v some questions about zombie processes what the benefits from zombie process concept? know

  • 0

I’v some questions about zombie processes

  • what the benefits from zombie process concept?
  • know that the kernel keeps (PID,termination status, resource usage information) for zombie process
    what’s the meaning of “resource usage information”
  • how zombie’s PPID() = 1 and it still zombie , (init reaps Zombies because it wait() by default)
    can any one write some C code to make a zombie it’s parent is Init?
  • can zombies refusing to release some lock on memory??

thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:18:58+00:00Added an answer on May 17, 2026 at 6:18 am

    — what the benefits from zombie process concept?

    A zombie process is just a pid, an exit status, and some accounting information that stays around until a parent uses one of the wait family of system calls to get its final status. Until a parent calls wait the child’s process ID must stay marked as used so that no other process can be assigned it. If another process were to get assigned a recycled pid it would be difficult to tell the difference between it and previous processes that had that same pid. Once wait is called by the parent and returns a final exit status it can be assumed that no one will go looking for the child at that pid again, so the pid may now be reused.
    (I think on Linux if a parent leaves SIGCHLD as SIG_IGN the kernel will not keep zombies around, but that re-registering SIGCHLD’s disposition as SIG_IGN does not have the same effect)

    — know that the kernel keeps (PID,termination status, resource usage information) for zombie process what’s the meaning of "resource usage information"

    Some of this information is what running a program as:

    time my_program
    

    will report. These values are usually reported in the siginfo structure for SIGCHLD (which isn’t exactly a call to wait) but also available from a call to the waitid form of systme call (on some systems). Look at man sigaction for info about this structure.

    — how zombie’s PPID() = 1 and it still zombie , (init reaps Zombies because it wait() by default)

    A zombie whose ppid = 1 should not stay a zombie for very long because init should reap it pretty quickly. A process will remain a zombie from a point soon after it dies (either via exit or by an unhanded signal that kills it) until its parent calls wait and gets it’s final status. This means that even if init does nothing but call init over and over there could be a small amount of time where a process may show up as a zombie. If processes show up as children of init (0=ppid) for long amounts of time (seconds) then something is probably wrong.

    — can any one write some C code to make a zombie it’s parent is Init?

    This isn’t clear, but I think you want:

    pid_t f = fork();
    if (f > 0) {
        exit(0); // this is the parent dying, so the child will be an orphan
                 // and get adopted by init
    } else if (f == 0) {
        sleep(100); // This is the child doing something that takes enough time for
                    // its parent to commit suicide (exit(0)) and then for you to
                    // observe that it has now been adopted by init
        exit(0);    // And now it dies as well, so init should reap its status, but
                    // it may be a zombie for a short amount of time first.
    } else /* error condition would be handled here */
    

    — can zombies refusing to release some lock on memory??

    Zombies can’t hold onto much of anything. They lose all of their memory pages, open file handles, …etc. Pretty much everything the operating system can figure out how to free up should get freed. It would be a bug not to, but remember that the OS has to know that it is something that is supposed to be freed. It is very easy to create resources in user space that should be freed when a program dies that the OS doesn’t know are supposed to be freed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have just tried to save a simple *.rtf file with some websites and
I've got a string that has curly quotes in it. I'd like to replace
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have some data like this: 1 2 3 4 5 9 2 6
I have a bunch of posts stored in text files formatted in yaml/textile (from
i got an object with contents of html markup in it, for example: string
I am trying to understand how to use SyndicationItem to display feed which is
I have a JSP page retrieving data and when single or double quotes are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.