write About fork()?

Answers were Sorted based on User's Feedback



write About fork()?..

Answer / msalve

Fork system call is used to create a new process. Fork is
called onces and returns twice.It will return 0 to the newly
created process (child process) and process id of child to
the calling process(parent process).

The child process gets copy of parents data, stack and heap
segement.The code segement is common for both.Both the
processes will resume execution from the command next to
fork.Scheduler decide which process to run first.

Is This Answer Correct ?    8 Yes 0 No

write About fork()?..

Answer / jagbir singh

fork is a system call used for creat a new process it return
two values ,return 0 for the child or new process and pid of
child or new process to the parent process or calling process.
child process uses same process context,which uses by the
parent process but the pcb(process context board)is differ
to the parent process

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Unix IPC Interview Questions

What Happens when you execute a command?

3 Answers  


What are two different models of ipc differentiate both?

0 Answers  


What is IPC? What are the various schemes available?

5 Answers  


What is semaphone?

5 Answers   HCL,


What are the process states in Unix?

11 Answers  


Predict the output of the following program code main() { fork(); printf("Hello World!"); }

3 Answers  


Explain about daemon?

0 Answers  


Explain fork() system call?

12 Answers   ASAS, IBM,


Explain the initial process sequence while the system boots up?

0 Answers  


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

0 Answers  


Explain the advantage of executing a process in background?

0 Answers  


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

2 Answers   Infosys,


Categories