Explain fork() system call?

Answer Posted / anchal

fork is a system call used for creating child processes of a
parent process.it returns the process id of the created
child process.after that pid(process id ) is checked if it
is negative,it means no child process is created,pid==0
implies the id of the newly created process and pid>0 is the
id of child process given to the parent process.the
statements following fork system call are executed by both
the parent and child process.and one more thing,the parent
and child process have the exact copy of address space but
it exist separately for the two processes.

Is This Answer Correct ?    45 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the very first process created by kernel?

806


What is daemon?

721


What is fork()?

781


What is ipc in unix?

735


Explain what is the process id for kernel process?

748






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

749


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

716


What is unix ipc?

728


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

716


What is i-node numbers?

800


Explain linking across directories?

695


What are two different models of ipc differentiate both?

772


Please explain fork() system call?

720


Explain the advantage of executing a process in background?

685


Explain a zombie?

805