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

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

2 Answers  


Explain how do you execute one program from within another?

0 Answers  


What is a zombie?

10 Answers  


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

1 Answers   HCL,


What is an advantage of executing a process in background?

2 Answers  






About ln(linking)

1 Answers   Infosys,


What is the full form of ipc?

0 Answers  


set-user-id is related to (in unix)

1 Answers  


What are various IDs associated with a process?

4 Answers  


How to write the program on full-duplex communication on bidirectional?

0 Answers  


What is ln(linking)?

0 Answers  


what about the initial process sequence while the system boots up?

1 Answers  


Categories