Fork

On July 15, 2009 / By admin / In Unix / Reply

Explain about fork.


Splitting is done by a system call named fork. Proc_id = fork (); splits the program into two copies, both of which continue to run. The only difference between the two is the value returned by fork, the process-id. Two copies of the program are made by the fork. In the child, the value returned by fork is zero, so it calls execlp, which does the command line and then dies. In the parent, fork returns non-zero so it skips the execlp.

Related posts:

  1. Can we export the file from Quality Centre to Excel / Word. If yes then how? Yes. Requirement tab– Right click on main Req/click on...
  2. Bugs are missing from queries, but exist in the database (and I can pull them up by specifying the bug ID). What’s wrong? You’ve almost certainly enabled the “shadow database”, but for...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags:

Reply

Spam Protection by WP-SpamFree