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

How to Form Abstract Local Addresses?

981


What is the difference between socket & port?

485


How TCP/IP Handles Flow Control?

1123


What is the use of SOCK_STREAM Socket Type?

1006


What is the use of inet_aton() Function?

1042






What is the use getservent(3)?

1128


How TCP/IP Handles Sequencing?

1135


How to open socket file in linux?

481


How to read socket file in linux?

488


How to Perform Input/Output of Datagrams?

932


Are udp sockets bidirectional?

468


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

1941


What are the best linux system programming interview questions you've ever asked or been asked?

439


How to Examin the Generic Socket Address?

975


How to look up a Service by Port and Protocol?

1104