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 Compare Sockets to Pipes?
What is the use of inet_addr() Function?
What are the Advantages of TCP/IP?
How TCP/IP Handles Lost Packets?
What are Reserved IP Numbers?
What is the use of setprotoent(3) Function?
How to use the PF_LOCAL and AF_LOCAL Macros?
How to Examin the Generic Socket Address?
How to Deal with Duplicated Sockets?
How to Form Traditional Local Addresses?
What is the use of inet_network()?
What is socket file in linux?
What is the setservent(3) Function?
How to Obtaine the Socket Address?
How does socket communication work?