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
How to Form Internet (IPv4) Socket Addresses?
How to Bind a Specific Interface Address?
What is the use of setprotoent(3) Function?
What is the use of PF_INET and SOCK_STREAM?
How do udp sockets work?
How to Understand Netmask Values?
What is a socket in linux?
What are sockets in linux?
How to Specify the Domain of a Socket?
What is the use of PF_INET or AF_INET?
How to Generate Addresses?
Why socket programming is used?
How to Allocate IP Addresses?
What is Internet Address Classes?
What is the Use of the inet_makeaddr() Function?