ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Linux  >>  Linux Socket Programming
 
 


 

 
 Linux Commands interview questions  Linux Commands Interview Questions
 Linux Threads interview questions  Linux Threads Interview Questions
 Linux IPC interview questions  Linux IPC Interview Questions
 Linux Socket Programming interview questions  Linux Socket Programming Interview Questions
 Linux System Calls interview questions  Linux System Calls Interview Questions
 Linux AllOther interview questions  Linux AllOther Interview Questions
Question
what is the difference between fork() & exec()
 Question Submitted By :: Alka
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between fork() & exec()
Answer
# 1
fork() creates a new process where exec() not....
exec() shares memory of parent here fork() process operates 
independently...
 
Is This Answer Correct ?    2 Yes 0 No
Alka
 
  Re: what is the difference between fork() & exec()
Answer
# 2
fork: Create a new process

exec: replace a process's objectcode with contents of file
(executable)
 
Is This Answer Correct ?    3 Yes 0 No
Laxman Masadi
 
 
 
  Re: what is the difference between fork() & exec()
Answer
# 3
fork() creates a child process with most of the attributes
of the parent process. Both parent and child processes are
executed simultaneously.
exec() replaces the current process with a the executable
pointed by the function. Control never returns to the
original program unless there is an exec() error.
 
Is This Answer Correct ?    3 Yes 0 No
Nitin
 
  Re: what is the difference between fork() & exec()
Answer
# 4
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 ?    1 Yes 0 No
Dheeraj Gahtori
 

 
 
 
Other Linux Socket Programming Interview Questions
 
  Question Asked @ Answers
 
what is the difference between fork() & exec() Subex4
What is the difference between a process task and threads and what are the things that are acquired by the child process from the parent process  3
 
For more Linux Socket Programming Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com