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 socket abstraction?
How to Bind Addresses to a Socket?
What is the use of PF_INET and SOCK_DGRAM?
How to Understand Network Byte Order?
Can you send and receive on the same socket at the same time?
What is the use of PF_INET and SOCK_STREAM?
How to Examin the /etc/services File?
What is the use of PF_INET or AF_INET?
What is the use of endprotoent(3) Function
How do udp sockets work?
What are sockets used for?
How to test socket connection in linux?
How to Examin the Generic Socket Address?
How socket is created?
What is the use of SOCK_STREAM Socket Type?