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 / 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


Please Help Members By Posting Answers For Below Questions

How to Define a Socket?

1379


What is the difference between socket & port?

900


What are Anonymous Calls?

1354


What is socket and how it works?

888


How to Deal with Duplicated Sockets?

1519


Why socket programming is used?

877


What is the use of endprotoent(3) Function

1697


How to Examin the /etc/services File?

1644


What are Reserved IP Numbers?

1364


Why bind system call is required in socket programming?

822


What is the use of inet_aton() Function?

1586


How to Obtaine the Socket Address?

1446


How to Reply to a Wild Address?

1617


How to Form Internet (IPv4) Socket Addresses?

1505


What is the use of setprotoent(3) Function?

1578