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

Answer Posted / anand

fork() created a newly independent process that has it's own
space in memory and also has own permission depends upon
what you assign

Using exec() the created process is a sub thread of calling
process. They also share area in memory and so that also
share all permission and resources.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Specify the Domain of a Socket?

1051


How to Allocate IP Addresses?

1135


how to get client port number in server socket programming??

1967


How to Test the Datagram Client and Server?

976


What are Nameless Sockets?

1054






How to Generate Addresses?

980


How to Specify an X.25 Address?

1003


How to read socket file in linux?

516


What is the use of endprotoent(3) Function

1342


Can a socket have multiple connections?

476


What are Private IP Numbers?

896


What is the use of SOCK_STREAM Socket Type?

1031


How to Choose a Socket Type?

944


What does socket consist of?

464


What is socket linux?

484