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 is the use getservent(3)?

1212


How to Initialize a Wild Internet Address?

1125


How TCP/IP Handles Sequencing?

1216


What is AF_UNSPEC Address?

1904


How to open socket file in linux?

573






How to Compare Sockets to Pipes?

1053


What is the difference between socket & port?

569


How to read socket file in linux?

588


What is the use of SOCK_STREAM Socket Type?

1103


How to Obtaine the Socket Address?

1104


What is the Use of the inet_netof() Function?

961


What is the use of PF_INET or AF_INET?

1189


How to Choose a Socket Type?

1029


How to Specify the Domain of a Socket?

1121


What is the use of inet_aton() Function?

1135