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

What is socket abstraction?

784


How to Bind Addresses to a Socket?

1312


What is the use of PF_INET and SOCK_DGRAM?

1347


How to Understand Network Byte Order?

1317


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

766


What is the use of PF_INET and SOCK_STREAM?

1265


How to Examin the /etc/services File?

1570


What is the use of PF_INET or AF_INET?

1522


What is the use of endprotoent(3) Function

1639


How do udp sockets work?

771


What are sockets used for?

760


How to test socket connection in linux?

897


How to Examin the Generic Socket Address?

1341


How socket is created?

729


What is the use of SOCK_STREAM Socket Type?

1329