what is the difference between fork() & exec()
Answer Posted / amit
what is the difference between fork() & exec()?
fork() creates a new child process and subsequently a new
entry in process table is made for the new process.
exec(), if successful, replaces the existing text segnent
of the process with that of new process. and hence, the old
process does not exists in the system any more. i dont
think, any new entry is created in the process table after
successful exec().
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
How to Form Internet (IPv4) Socket Addresses?
What is the use of PF_INET and SOCK_STREAM?
What is the Use of the inet_makeaddr() Function?
How to Test with No Server?
How to Form Local Addresses?
How to Choose a Socket Type?
Can you send and receive on the same socket at the same time?
What is the use of PF_INET and SOCK_DGRAM?
What is the use of inet_aton() Function?
How to Specify the Domain of a Socket?
What are the best linux system programming interview questions you've ever asked or been asked?
What are Anonymous Calls?
How to Understand Network Byte Order?
How to use the PF_LOCAL and AF_LOCAL Macros?
HOW TCP/IP Handles Duplicated Packets?