what is the difference between fork() & exec()
Answer Posted / dheeraj gahtori
processes began through a process called "fork and exec".
that is when one command starts another, the child process
first forks , the kernel copying over pages of memory from
the present process to a new location for the child process.
The child then execs, executing the new command and
overwriting the data
Is This Answer Correct ? | 8 Yes | 17 No |
Post New Answer View All Answers
Why bind system call is required in socket programming?
What is the use of PF_INET and SOCK_DGRAM?
How to use the socket(2) Function?
How to Understand Netmask Values?
How to Form Internet (IPv4) Socket Addresses?
What is the use of PF_LOCAL and SOCK_STREAM?
How to Bind a Specific Interface Address?
What are Reserved IP Numbers?
What are Anonymous Calls?
What is the setservent(3) Function?
How TCP/IP Handles Sequencing?
How to Deal with Duplicated Sockets?
How to Perform Input/Output of Datagrams?
Can you send and receive on the same socket at the same time?
How TCP/IP Handles Lost Packets?