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

Answer Posted / vijay kumar reddy

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

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about daemon?

568


Explain a zombie?

625


What is the very first process created by kernel?

598


Explain the initial process sequence while the system boots up?

552


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

577






Which ipc is the fastest in unix?

548


Explain linking across directories?

538


Explain the system calls used for process management?

544


What is the full form of ipc?

585


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

549


What is ipc in unix?

563


What is the condition required for dead lock in unix system?

552


Which ipc is faster?

567


Explain how do you execute one program from within another?

531


What are the various schemes available in ipc?

555