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 does socket consist of?

462


How to Write a UDP Datagram Server?

946


How do udp sockets work?

491


How to Test with Other IP Numbers?

1076


What is the use of recvfrom(2) Function?

986






How to look up a Service by Port and Protocol?

1119


Why bind system call is required in socket programming?

450


How to open socket file in linux?

500


How to Compare Sockets to Pipes?

970


How to use the PF_LOCAL and AF_LOCAL Macros?

1072


What are sockets in linux?

499


How to Deal with Duplicated Sockets?

1162


What is the use of inet_aton() Function?

1070


What is the use of inet_addr() Function?

986


How to Understand Netmask Values?

956