what is the difference between fork() & exec()

Answer Posted / dheeraj gahtori

processes began through a process called "fork and exec".
that is when one command starts another, the child process
first forks , the kernel copying over pages of memory from
the present process to a new location for the child process.
The child then execs, executing the new command and
overwriting the data

Is This Answer Correct ?    8 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of PF_LOCAL and SOCK_STREAM?

1293


How to Deal with Duplicated Sockets?

1236


How to Examin the /etc/services File?

1274


How to Form Traditional Local Addresses?

1025


What are sockets used for?

536






How to Specify the Domain of a Socket?

1135


Are sockets full duplex?

565


Can a socket have multiple connections?

562


Are sockets bidirectional?

523


How to Form Abstract Local Addresses?

1067


What is the use of inet_addr() Function?

1059


How TCP/IP Handles Sequencing?

1226


How to Test the Datagram Client and Server?

1051


How to Generate Addresses?

1056


What is the Use of the inet_ntoa() Function?

1005