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
What are Address Conversion Functions?
How to Reply to a Wild Address?
How to use the PF_LOCAL and AF_LOCAL Macros?
What is the use of inet_network()?
What is socket file in linux?
What is the difference between socket & port?
How to Obtaine the Socket Address?
How to Form Internet (IPv4) Socket Addresses?
How to look up a Service by Port and Protocol?
How to Allocate IP Addresses?
Are sockets full duplex?
How to Perform Input/Output of Datagrams?
What are Private IP Numbers?
How to Test with Other IP Numbers?
What is the use of PF_INET or AF_INET?