what is the difference between fork() & exec()
Answer Posted / antony.t
fork() will create a new process and its a system call API its return values are- if fork created new process(child process), its pid will be returned, if it failed to create returns -1.
exec() is also a system call API but this will load a application, if exec() succeeds it will not return anything but 'll return -1 if it gets failed to load application...
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to Define a Socket?
What is the difference between socket & port?
What are Anonymous Calls?
What is socket and how it works?
How to Deal with Duplicated Sockets?
Why socket programming is used?
What is the use of endprotoent(3) Function
How to Examin the /etc/services File?
What are Reserved IP Numbers?
Why bind system call is required in socket programming?
What is the use of inet_aton() Function?
How to Obtaine the Socket Address?
How to Reply to a Wild Address?
How to Form Internet (IPv4) Socket Addresses?
What is the use of setprotoent(3) Function?