Re: WIndows process table and process image.

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi mate


There is no such thing as "zombie process" under Windows, because, strictly
speaking, there is no parent-child relationship under Windows. After a child
process has been spawned, it lives its separate life that is totally
unrelated to that of a parent process - it will keep on running even after
its parent process gets terminated.

As you have properly pointed out, when a process terminates, all handles
that it has opened get closed. Therefore, when the parent process terminates,
all its handles are closed, so that reference count on the child process
gets decremented. When the reference count gets down to zero, the process
gets removed from the table.

As you can see it yourself, this is not really a "zombie process" that has
no chance to get removed from the table -
with such approach the process will get removed from the table sooner or
later, so that the very concept of "zombie processes" does not apply to
Windows

Anton Bassov
.



Relevant Pages

  • Re: maximize child without covering parents menu
    ... maximize the child vi because it covers the menu of the parent vi. ... LabVIEW menus jsut as about everything else in LabVIEW ... except the window frame itself are not standard Windows objects. ...
    (comp.lang.labview)
  • Re: Configure 2 servers to resolve to each other?
    ... Craig made a post then I commented ... Who is the child and who is the parent? ... If the windows 2000 domain is a child of the Win2003 domain, ...
    (microsoft.public.win2000.dns)
  • Re: Child dialog and OK/Cancel handling
    ... >When searching for a window to handle input messages, Windows doesn't start with child windows, ... >the parent wants to handle messages of that type, ... >to your child dialog when the parent dialog has nothing ... I believe I had tested this and IsDialogMessage is called ...
    (microsoft.public.vc.mfc)
  • Re: Can a Forms parent be in another thread?
    ... Normaly windows procedures are not reentrant. ... You know that parent and child controls communicate by sending messages each ... > Does anybody know if the Parent of a form can safely be set to a form runing> in another thread? ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Creating and killing processes
    ... > application and then get completely detached just like Windows? ... fork twice let the intermediate process terminate ... Unix the parent is responsible to do that, ... Collect the exist status of the child. ...
    (comp.os.linux.development.apps)