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
What is the use of inet_aton() Function?
What is the use of inet_addr() Function?
How does socket communication work?
How to look up a Service by Port and Protocol?
Are udp sockets bidirectional?
What is the use of endprotoent(3) Function
What are Nameless Sockets?
What are Private IP Numbers?
What is the use of PF_LOCAL and SOCK_STREAM?
What is AF_UNSPEC Address?
Can you send and receive on the same socket at the same time?
How to Close Sockets?
What is socket abstraction?
How to use the PF_LOCAL and AF_LOCAL Macros?
What are sockets in linux?