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 socket is created?

467


How to Write a UDP Datagram Client?

954


What is the Use of the inet_makeaddr() Function?

956


Are sockets full duplex?

491


How to Form Local Addresses?

1015






How to Understand Netmask Values?

956


What is the use of SOCK_DGRAM Socket Type?

998


What is the use of SOCK_STREAM Socket Type?

1025


What is socket abstraction?

487


How does socket communication work?

487


What is the use of inet_network()?

997


How to Specify an X.25 Address?

1001


How to Form Abstract Local Addresses?

993


What is the use of PF_LOCAL and SOCK_STREAM?

1201


How to Form Internet (IPv4) Socket Addresses?

998