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

What is ln(linking)?

578


Explain the advantage of executing a process in background?

507


What are the various schemes available in ipc?

549


Explain the initial process sequence while the system boots up?

546


Explain the system calls used for process management?

542






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

573


Explain linking across directories?

532


Which ipc is faster?

564


Explain about daemon?

565


What are the various schemes available?

543


What is fork()?

597


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

583


Explain what are the system calls used for process management?

512


What is the very first process created by kernel?

590


What is unix ipc?

551