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 Choose a Socket Type?
How to use the socket(2) Function?
How to perform I/O on Sockets?
How to Form Internet (IPv4) Socket Addresses?
How to use the PF_LOCAL and AF_LOCAL Macros?
What is the use of SOCK_STREAM Socket Type?
What are Private IP Numbers?
How to Initialize a Wild Internet Address?
What is the use of SOCK_DGRAM Socket Type?
How to Examin the /etc/services File?
What is the use getservent(3)?
How TCP/IP Handles Lost Packets?
What are Anonymous Calls?
What is the use of inet_aton() Function?
How to Specify an X.25 Address?