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

Why bind system call is required in socket programming?

527


What is the use of PF_INET and SOCK_DGRAM?

1130


How to use the socket(2) Function?

1070


How to Understand Netmask Values?

1019


How to Form Internet (IPv4) Socket Addresses?

1070






What is the use of PF_LOCAL and SOCK_STREAM?

1284


How to Bind a Specific Interface Address?

1063


What are Reserved IP Numbers?

1078


What are Anonymous Calls?

1066


What is the setservent(3) Function?

1226


How TCP/IP Handles Sequencing?

1216


How to Deal with Duplicated Sockets?

1224


How to Perform Input/Output of Datagrams?

1013


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

518


How TCP/IP Handles Lost Packets?

1321