How can a parent and child process communicate?
Answer Posted / yogesh warad
Parent and child processes can communicate with unnamed pipe,
but the pipe should be created before creating the
child(i.e. forking).
After forking the process, child process inherits all
properties of parent, hence pipe also. This pipe can ce used
to communicate between parent and child process. But if one
wants to use exec(s), then this technique is not useful. The
user have to use named pipe or Message-Queue.
| Is This Answer Correct ? | 35 Yes | 7 No |
Post New Answer View All Answers
Explain the advantage of executing a process in background?
What are two different models of ipc differentiate both?
Explain about daemon?
How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?
Explain what is the process id for kernel process?
What is ipc port?
Explain the system calls used for process management?
Max relax-able permission value with out giving write permission to others?
What is i-node numbers?
What is ln(linking)?
Explain linking across directories?
Explain how do you execute one program from within another?
What is unix ipc?
Please explain fork() system call?
How to write the program on full-duplex communication on bidirectional?