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 Allocate IP Addresses?
What is the use of PF_LOCAL and SOCK_STREAM?
What are the different types of sockets?
What are the best linux system programming interview questions you've ever asked or been asked?
How to use the PF_LOCAL and AF_LOCAL Macros?
How to open socket file in linux?
Can a socket have multiple connections?
how to get client port number in server socket programming??
How to Reply to a Wild Address?
What is Internet Address Classes?
What is the Use of the inet_netof() Function?
How to Test with No Server?
Are sockets bidirectional?
How to Understand Network Byte Order?
How to read socket file in linux?