what is the difference between fork() & exec()
Answer Posted / nitin
fork() creates a child process with most of the attributes
of the parent process. Both parent and child processes are
executed simultaneously.
exec() replaces the current process with a the executable
pointed by the function. Control never returns to the
original program unless there is an exec() error.
Is This Answer Correct ? | 89 Yes | 6 No |
Post New Answer View All Answers
What is AF_UNSPEC Address?
What is the use of recvfrom(2) Function?
How to Compare Sockets to Pipes?
What is the Use of the inet_ntoa() Function?
What is socket linux?
How to Examin the Generic Socket Address?
How to Obtaine the Socket Address?
How to Form Local Addresses?
What is socket file in linux?
How to Test with Other IP Numbers?
What are Private IP Numbers?
How to use the socket(2) Function?
What is the use of SOCK_DGRAM Socket Type?
How socket is created?
What is the use of inet_addr() Function?