Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between fork() & exec()

Answer Posted / amit

what is the difference between fork() & exec()?

fork() creates a new child process and subsequently a new
entry in process table is made for the new process.

exec(), if successful, replaces the existing text segnent
of the process with that of new process. and hence, the old
process does not exists in the system any more. i dont
think, any new entry is created in the process table after
successful exec().

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Form Internet (IPv4) Socket Addresses?

1503


What is the use of PF_INET and SOCK_STREAM?

1328


What is the Use of the inet_makeaddr() Function?

1338


How to Test with No Server?

1476


How to Form Local Addresses?

1418


How to Choose a Socket Type?

1300


Can you send and receive on the same socket at the same time?

820


What is the use of PF_INET and SOCK_DGRAM?

1404


What is the use of inet_aton() Function?

1586


How to Specify the Domain of a Socket?

1474


What are the best linux system programming interview questions you've ever asked or been asked?

795


What are Anonymous Calls?

1354


How to Understand Network Byte Order?

1362


How to use the PF_LOCAL and AF_LOCAL Macros?

1552


HOW TCP/IP Handles Duplicated Packets?

1618