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 read socket file in linux?

488


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

447


What is Internet Address Classes?

959


How to Form Internet (IPv4) Socket Addresses?

981


Why socket programming is used?

472






HOW TCP/IP Handles Duplicated Packets?

1203


How to use the socket(2) Function?

971


How to Allocate IP Addresses?

1107


What are Nameless Sockets?

1042


What is socket connection?

468


What are Private IP Numbers?

878


How to use the PF_LOCAL and AF_LOCAL Macros?

1037


How to Write a UDP Datagram Client?

937


What is the use of PF_INET or AF_INET?

1081


How to Manipulate IP Numbers?

954