write About fork()?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

764


What is daemon?

750


Explain a zombie?

819


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

727


What are two different models of ipc differentiate both?

791


What are the various schemes available in ipc?

718


What is i-node numbers?

821


Which ipc is faster?

725


Tell me set-user-id is related to (in unix)?

694


Explain linking across directories?

708


What is ln(linking)?

788


What is the full form of ipc?

856


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

746


Explain about daemon?

775


Explain the system calls used for process management?

727