Linux - Describe how a parent and child process communicates each other

Describe how a parent and child process communicates each other.

The inter communication between a child process and a parent process can be done through normal communication schemes such as pipes, sockets, message queues, shared memories. There are special ways to inter communicate which has advantage of the relationships.

One of the most obvious advantages is that the exit status of the child process can be obtained by the parent process.

By communicating with unnamed pipes, the creation on pipe should be done before the creation of child. This process is called forking. Soon after forking, the parent properties will be inherited by child, also the pipe. The communication between parent and child is done with this pipe.
Linux - What is a Daemon?
What is a Daemon? - Daemon is the short form for Disk and Execution Monitor......
Linux - What is 'ps' command for?
What is 'ps' command for? - The shortage for “process status” is ps.......
Linux - How the Swapper works?
How the Swapper works? - Moving the information from fast access memory and slow access memory and vice versa is known as swapping........
Post your comment