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 Test with Other IP Numbers?

1499


How to Form Traditional Local Addresses?

1380


How to Form Abstract Local Addresses?

1368


How to open socket file in linux?

1014


How to Write a UDP Datagram Client?

1385


What is the use of PF_INET and SOCK_STREAM?

1322


How to Form Internet (IPv4) Socket Addresses?

1492


What is socket connection?

847


How to use the socket(2) Function?

1512


What are Reserved IP Numbers?

1364


How to Perform Input/Output of Datagrams?

1443


What is the Use of the inet_makeaddr() Function?

1336


What are Private IP Numbers?

1215


What is AF_UNSPEC Address?

2247


What is the use of endprotoent(3) Function

1691