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
What is the use of endprotoent(3) Function
What is Internet Address Classes?
What are Address Conversion Functions?
What is socket file in linux?
What is AF_UNSPEC Address?
How to Write a UDP Datagram Server?
How to use the socket(2) Function?
How to Understand Netmask Values?
What is the use of PF_LOCAL and SOCK_STREAM?
What are Nameless Sockets?
How to Choose a Socket Type?
How to open socket file in linux?
What are the best linux system programming interview questions you've ever asked or been asked?
What is the Use of the inet_ntoa() Function?
How to Manipulate IP Numbers?