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 Perform Input/Output of Datagrams?

946


How to Obtaine the Socket Address?

1020


How socket is created?

467


How to Specify an X.25 Address?

1001


How TCP/IP Handles Lost Packets?

1246






What is socket and how it works?

477


How do udp sockets work?

491


How to Understand Netmask Values?

956


How to Choose a Socket Type?

939


What are the Advantages of TCP/IP?

1124


What is the difference between socket & port?

500


What are Reserved IP Numbers?

997


What is socket connection?

488


How to Close Sockets?

1033


What is the use of PF_INET and SOCK_STREAM?

1000