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 socket linux?

484


What is the use of SOCK_STREAM Socket Type?

1031


How to Define a Socket?

1006


What is the use of endservent(3) Function?

1181


How to Form Internet (IPv4) Socket Addresses?

999






What is the use of recvfrom(2) Function?

988


Can you send and receive on the same socket at the same time?

464


How to Specify the Domain of a Socket?

1051


What are Private IP Numbers?

896


What is the use of inet_network()?

999


What are sockets used for?

471


What is the Use of the inet_netof() Function?

910


how to get client port number in server socket programming??

1967


How socket is created?

470


What is the Use of the inet_ntoa() Function?

940