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

Answer Posted / nitin

fork() creates a child process with most of the attributes
of the parent process. Both parent and child processes are
executed simultaneously.
exec() replaces the current process with a the executable
pointed by the function. Control never returns to the
original program unless there is an exec() error.

Is This Answer Correct ?    89 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Define a Socket?

1002


What is socket file in linux?

501


How to Initialize a Wild Internet Address?

1041


What is the difference between socket & port?

502


How to Perform Input/Output of Datagrams?

948






What is socket abstraction?

487


How to test socket connection in linux?

479


What are sockets in linux?

500


How to Test with Other IP Numbers?

1076


Are sockets full duplex?

491


How to Examin the Generic Socket Address?

994


How to Understand Netmask Values?

956


How do udp sockets work?

491


How to Bind Addresses to a Socket?

919


How to Compare Sockets to Pipes?

970