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 Understand Netmask Values?
How to Perform Input/Output of Datagrams?
What are Reserved IP Numbers?
How socket is created?
What is a socket in linux?
What is the use of endservent(3) Function?
What is the Use of the inet_netof() Function?
How to Write a UDP Datagram Server?
how to get client port number in server socket programming??
How TCP/IP Handles Sequencing?
HOW TCP/IP Handles Duplicated Packets?
How to perform I/O on Sockets?
How does socket communication work?
Why bind system call is required in socket programming?
How TCP/IP Handles Flow Control?