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


Please Help Members By Posting Answers For Below Questions

What is the very first process created by kernel?

598


Explain a zombie?

625


How to get or set an environment variable from a program?

549


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

588


What are the various schemes available?

547






Max relax-able permission value with out giving write permission to others?

575


Explain the advantage of executing a process in background?

513


What is ln(linking)?

584


Please explain fork() system call?

561


What is fork()?

601


Explain the initial process sequence while the system boots up?

552


Please describe the initial process sequence while the system boots up?

577


Explain how do you execute one program from within another?

531


Explain what are the system calls used for process management?

515


Which ipc is faster?

567