Orphan process

Orphan process

An orphan process is a computer process whose parent process has finished or terminated, though itself remains running.

In a Unix-like operating system any orphaned process will be immediately adopted by the special init system process. This operation is called re-parenting and occurs automatically. Even though technically the process has the "init" process as its parent, it is still called an orphan process since the process that originally created it no longer exists.

A process can be orphaned unintentionally, such as when the parent process terminates or crashes. The process group mechanism in most Unix-like operation systems can be used to help protect against accidental orphaning, where in coordination with the user's shell will try to terminate all the child processes with the SIGHUP process signal, rather than letting them continue to run as orphans.

A process may also be intentionally orphaned so that it becomes detached from the user's session and left running in the background; usually to allow a long-running job to complete without further user attention, or to start an indefinitely running service. Under Unix, the latter kinds of processes are typically called daemon processes. The Unix nohup command is one means to accomplish this.

With remote invocation, a server process is also said to be orphaned when the client that initiated the request unexpectedly crashes after making the request while leaving the server process running. These orphaned processes waste server resources and can potentially leave a server starved for resources. However there are several solutions to the orphan process problem:

  1. Extermination is the most commonly used technique; in this case the orphan is killed.
  2. Reincarnation is a technique in which machines periodically try to locate the parents of any remote computations; at which point orphaned processes are killed.
  3. Expiration is a technique where each process is allotted a certain amount of time to finish before being killed. If need be a process may "ask" for more time to finish before the allotted time expires.

See also


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Orphan (disambiguation) — For orphaned articles in Wikipedia, see Wikipedia:Orphan An orphan is one who has lost both parents. Orphan may also refer to: Orphan (car), an automobile (or other vehicle) built by a manufacturer that either no longer exists or has been… …   Wikipedia

  • Process (computing) — In computing, a process is an instance of a computer program that is being executed. It contains the program code and its current activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that… …   Wikipedia

  • Process states — In a multitasking computer system, processes may occupy a variety of states. These distinct states may not actually be recognized as such by the operating system kernel, however they are a useful abstraction for the understanding of… …   Wikipedia

  • Orphan's Benefit — Mickey Mouse series Donald Duck follows Mickey Mouse on stage in their first joint appearance Directed by …   Wikipedia

  • Orphan initialism — is the changing of the official name of a corporation, advocacy group or any organization to an acronym or initialism. [1] Formed like any other acronym, the initial letters of the previous name are used. Such name changes are often connected to… …   Wikipedia

  • Orphan Drug Act of 1983 — The Orphan Drug Act of 1983 is a law passed in the United States designed to facilitate the development and commercialization of drugs to treat rare diseases, termed orphan drugs. Orphan drug designation does not indicate that the therapeutic is… …   Wikipedia

  • Orphan drug — An orphan drug is a pharmaceutical agent that has been developed specifically to treat a rare medical condition, the condition itself being referred to as an orphan disease. The assignment of orphan status to a disease and to any drugs developed… …   Wikipedia

  • Orphan works in the United States — An orphan work is a copyright work where it is difficult or impossible to identify or contact the copyright owner. See United States copyright law Contents 1 Orphan works 1.1 Public Domain Enhancement Act 1.2 Copyright Office study …   Wikipedia

  • Orphan Train — The Orphan Train was a social experiment that transported children from crowded coastal cities of the United States to the country s Midwest for adoption. The orphan trains ran between 1854 and 1929, relocating an estimated 200,000 orphaned,… …   Wikipedia

  • Zombie process — On Unix and Unix like computer operating systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table. This entry is still needed to allow the process that started the (now… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”