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
How to Test with No Server?
Can you send and receive on the same socket at the same time?
How to Initialize a Wild Internet Address?
What are the Advantages of TCP/IP?
How to Test with Other IP Numbers?
What are the best linux system programming interview questions you've ever asked or been asked?
Why bind system call is required in socket programming?
How to Form Traditional Local Addresses?
What is socket and how it works?
How to Reply to a Wild Address?
How to Form Abstract Local Addresses?
What are sockets in linux?
How to Compare Sockets to Pipes?
HOW TCP/IP Handles Duplicated Packets?
How to Understand Network Byte Order?