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 does socket communication work?

595


What is socket connection?

556


What is the setservent(3) Function?

1238


How to Test with Other IP Numbers?

1159


How to Define a Socket?

1104






HOW TCP/IP Handles Duplicated Packets?

1338


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

537


How to Form Local Addresses?

1128


How to use the socket(2) Function?

1085


How to Choose a Socket Type?

1041


How to perform I/O on Sockets?

985


What is the use getservent(3)?

1223


How to Generate Addresses?

1056


How to Understand Network Byte Order?

1110


How to Examin the /etc/services File?

1274