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 endprotoent(3) Function
What is the use of setprotoent(3) Function?
How TCP/IP Handles Lost Packets?
What are Nameless Sockets?
HOW TCP/IP Handles Duplicated Packets?
Can you send and receive on the same socket at the same time?
Are sockets full duplex?
What is socket file in linux?
What is the use getservent(3)?
What is Internet Address Classes?
What is the Use of the inet_ntoa() Function?
How to Write a UDP Datagram Server?
How TCP/IP Handles Sequencing?
What is the use of endservent(3) Function?