What is fork command in UNIX

System call used to create process

Showing Answers 1 - 1 of 1 Answers

puneet0307

  • Jun 19th, 2009
 

fork creates a child process that differs from the parent process only in its
PID and PPID, and in the fact that resource utilizations are set to 0. File
locks and pending signals are not inherited.


RETURN VALUE On success, the PID of the child process is returned in the
parent's thread of execution, and a 0 is returned in the child's thread of
execution. On failure, a -1 will be returned in the parent's context, no child
process will be created, and errno will be set appropriately.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions