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

Answer Posted / amit

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

fork() creates a new child process and subsequently a new
entry in process table is made for the new process.

exec(), if successful, replaces the existing text segnent
of the process with that of new process. and hence, the old
process does not exists in the system any more. i dont
think, any new entry is created in the process table after
successful exec().

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sockets in linux?

594


What is the use of SOCK_STREAM Socket Type?

1113


What is Internet Address Classes?

1077


How TCP/IP Handles Lost Packets?

1329


How to Bind a Specific Interface Address?

1076






What does socket consist of?

539


How to Test the Datagram Client and Server?

1051


Why socket programming is used?

567


How to Choose a Socket Type?

1041


How to Form Traditional Local Addresses?

1025


How to Deal with Duplicated Sockets?

1236


How to Form Local Addresses?

1128


How to Form Abstract Local Addresses?

1067


What is the use of inet_network()?

1070


What is socket linux?

553