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 are sockets in linux?
What are Reserved IP Numbers?
What is a socket in linux?
Why socket programming is used?
What is the Use of the inet_ntoa() Function?
How to Understand Network Byte Order?
How socket is created?
How to Manipulate IP Numbers?
What is the use of PF_LOCAL and SOCK_STREAM?
How to Form Local Addresses?
How to Perform Input/Output of Datagrams?
What is the difference between socket & port?
How to read socket file in linux?
What is the Use of the inet_makeaddr() Function?
Why bind system call is required in socket programming?