10

What is the primary difference between the two? I always see this in the right click menu in windows. What happens if you end a process that is relied upon by another process? Is there a way to "kill" a process tree in linux or is the technology different?

1 Answer 1

10

When you start a process, many of them can be used to either call additional instances or separate processes.

enter image description here

These are called child processes, additionally each child can then call child processes (Making the original process a grandparent, and each of these new processes as grand child processes).

If you kill the parent process, it should also kill the children / grandchildren in the tree.

It is possible to call processes and not be officially in the tree though. This is a rough concept.

Also, Linux can kill trees but it is generally not as straight forward as right clicking a process in the activity monitor.

3
  • 1
    Regarding killing, you can have orphan processes too.
    – Karan
    Apr 19, 2013 at 0:41
  • Yep, I tried not to over complicate it for the sake of the answer... Although its a good point. Apr 19, 2013 at 0:49
  • 1
    will "If you kill the parent process, it should also kill the children / grandchildren in the tree." require "end process" or "end process tree?" Also how is this done in linux?
    – agz
    Apr 19, 2013 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.