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 are the Advantages of TCP/IP?
How to Specify an X.25 Address?
What does socket consist of?
How to Form Local Addresses?
Why socket programming is used?
How to Test the Datagram Client and Server?
How to Compare Sockets to Pipes?
How to Deal with Duplicated Sockets?
What are Address Conversion Functions?
What are Anonymous Calls?
How to Form Traditional Local Addresses?
How to Perform Input/Output of Datagrams?
How to Manipulate IP Numbers?
How to Perform Endian Conversions?
What is the difference between socket and port?