Parent process

Parent process

A parent process is a computer process that has created one or more child processes.

In UNIX, every process except process 0 (the swapper) is created when another process executes the fork system call. The process that invoked fork is the "parent process" and the newly-created process is the "child process". Every process (except process 0) has one parent process, but can have many child processes.

The kernel identifies each process by its process identifier (PID). Process 0 is a special process that is created when the system boots; after forking a child process (process 1), process 0 becomes the swapper process. Process 1, known as init, is the ancestor of every other process in the system.

When a child process terminates execution, either by calling the "exit" system call, causing a fatal execution error, or receiving a terminating signal, an exit status is returned to the operating system. The parent process is informed of its child's termination through a SIGCHLD signal. A parent will typically retrieve its child's exit status by calling the "wait" system call. However, if a parent does not do so, the child process becomes a zombie process.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Parent (disambiguation) — Parent may refer to:*Parenting, comprising all the tasks involved in raising a child to an independent adult. Types of parents include: **Foster parent, an adult guardian to whom one or more children have been legally entrusted **Godparent, in… …   Wikipedia

  • Process drama — as a teaching methodology has developed primarily from the work of Brian Way, Dorothy Heathcote and Gavin Bolton (Bolton, 1979, 1984, 1992; Bolton Heathcote, 1; Heathcote Bolton, 1995) and through the work of other leading drama practitioners… …   Wikipedia

  • Process management (computing) — Operating systems …   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 identifier — Identifiant de processus L identifiant de processus ou PID (Process IDentifier) est un code unique attribué sur les systèmes Unix ou Windows à tout processus lors de son démarrage. Il permet ainsi d identifier le processus dans la plupart des… …   Wikipédia en Français

  • Process architecture — is the structural design of general process systems and applies to fields such as computers (software, hardware, networks, etc.), business processes (enterprise architecture, policy and procedures, logistics, project management, etc.), and any… …   Wikipedia

  • Process group — In POSIX conformant operating systems, a process group denotes a collection of one or more processes. Process groups are used to control the distribution of signals. A signal directed to a process group is delivered individually to all of the… …   Wikipedia

  • PARENT AND CHILD — STATUS OF THE CHILD In Jewish law, there is no discrimination against a child because of the mere fact that he is born out of lawful wedlock. While the said fact may complicate the question of establishing paternity, once the identity of the… …   Encyclopedia of Judaism

  • Process identifier — In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by some operating system kernels (such as that of UNIX, Mac OS X or Windows NT) to uniquely identify a process.In Unix like operating… …   Wikipedia

  • parent-child relationships — Traditionally, fathers have believed that their role, as a counterpoint to the role of mothers was decidedly not to encourage or tolerate emotional indulgence and promote dependency. They assumed instead the role of stern disciplinarian (Fei… …   Encyclopedia of Contemporary Chinese Culture

Share the article and excerpts

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