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 do udp sockets work?
What is socket and how it works?
What is the use of inet_aton() Function?
How to Write a UDP Datagram Server?
What is the Use of the inet_makeaddr() Function?
How to Understand Network Byte Order?
How to Deal with Duplicated Sockets?
How to use the socket(2) Function?
How to Define a Socket?
What are the best linux system programming interview questions you've ever asked or been asked?
What is the use of recvfrom(2) Function?
What is socket abstraction?
How to Understand Netmask Values?
What is the use of endservent(3) Function?
How to Form Internet (IPv4) Socket Addresses?