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 TCP/IP Handles Lost Packets?
What is the use of endservent(3) Function?
What is the use of PF_INET and SOCK_DGRAM?
What is the use of PF_INET and SOCK_STREAM?
How to Bind Addresses to a Socket?
How to perform I/O on Sockets?
How to read socket file in linux?
Are sockets full duplex?
What is the Use of the inet_makeaddr() Function?
What is the use of inet_addr() Function?
What is the use of inet_aton() Function?
How to Close Sockets?
Can you send and receive on the same socket at the same time?
What is the setservent(3) Function?
How to Obtaine the Socket Address?