how to create tree of processes. one parent and 3 childs.



how to create tree of processes. one parent and 3 childs...

Answer / vijay kumar reddy

pid= fork();
if(pid>0)
{
fork();
}
else
printf();

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Unix IPC Interview Questions

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

2 Answers   Infosys,


Describe the initial process sequence while the system boots up?

4 Answers  


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

0 Answers  


what is the process id for kernell process

3 Answers  


How can you get or set an environment variable from a program?

2 Answers  






Explain the advantage of executing a process in background?

0 Answers  


Explain a zombie?

0 Answers  


What are various IDs associated with a process?

3 Answers  


Explain what is the process id for kernel process?

0 Answers  


How do you execute one program from within another?

4 Answers  


What is the very first process created by kernel?

0 Answers  


What are two different models of ipc differentiate both?

0 Answers  


Categories