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 do udp sockets work?

560


How to open socket file in linux?

573


Are sockets bidirectional?

509


What are Anonymous Calls?

1066


What is the use of inet_addr() Function?

1054






How to use the PF_LOCAL and AF_LOCAL Macros?

1184


How to Examin the /etc/services File?

1263


What is the use getservent(3)?

1212


How to Initialize a Wild Internet Address?

1125


What is socket abstraction?

564


What are the Advantages of TCP/IP?

1204


What is socket connection?

548


What is the difference between socket and port?

558


How to Write a UDP Datagram Server?

1012


Why bind system call is required in socket programming?

529