Child Process

Definition - What does Child Process mean?

A child process is the creation of a parent process, which can be defined as the main process that creates child or subprocesses to perform certain operations. Each process can have many child processes but only one parent. A child process inherits most of its parent's attributes.

Techopedia explains Child Process

A parent process can create multiple child processes. If a process does not have a parent, it is assumed to be created directly by the kernel.

In systems such as Unix and Linux, the first process, "init", is created by the kernel at boot time and never terminated as long as the system is running. Other parentless processes may be launched to perform different daemon tasks.

In some situations, a child process is orphaned when its parent dies. The orphaned child process is then shortly adopted by the init process.

However in Unix, a child process created using the fork system call is generally a clone of the original parent process. After forking a child process, both the parent and the child continue to run their own way. In Windows, when a new process is created by one of the CreateProcess family of functions, a new process handle is returned. This handle is then created with full access rights and is subject to security access checking. The process handle can be inherited by a child process based on the inheritance flag specified during creation.

When a child process is created, it is associated with a unique process ID number. The lifetime of a process ends when a termination signal is reported to the parent process, resulting in the release of the process ID and resources.

Posted by:
Recommended For You close
Unix/Linux Shells 101

Read More »

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
Techopedia on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join 138,000+ IT pros on our weekly newsletter

Resources
Free Whitepaper – Bridging the IT Operations Application Owner Gap
Free Whitepaper – Bridging the IT Operations Application Owner Gap:
Conflicting organizational needs all too often create tension between functional silos. Application owners demand more and more resources.
Free 30 Day Trial – VMTurbo Operations Manager
Free 30 Day Trial – VMTurbo Operations Manager:
VMTurbo's flagship product, Operations Manager maintains your virtual and cloud environments in a healthy state. It manages homogeneous and...