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

Answer Posted / gopi

fork() is used to creat new process.but execl() is used to load another application....see before going to load new,exexl() try to remove all data about old process..like old-----pid,vad,resourse

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Reserved IP Numbers?

1078


How to Choose a Socket Type?

1029


How to Compare Sockets to Pipes?

1053


How to Test with Other IP Numbers?

1145


What are Nameless Sockets?

1171






What is the use of setprotoent(3) Function?

1210


How to open socket file in linux?

573


What is Internet Address Classes?

1067


How socket is created?

532


How to Bind a Specific Interface Address?

1064


How to use the PF_LOCAL and AF_LOCAL Macros?

1184


How to Form Abstract Local Addresses?

1053


How to test socket connection in linux?

560


How to Define a Socket?

1096


What is the use of PF_LOCAL and SOCK_STREAM?

1284