between fork, exec, & system
Somewhere I saw a question saying
"Whats the difference between fork, exec, & system commands"
Can anyone answer me the above question?
Thanks in advance
Are you looking for the use of these terms in C++, Java, or in Unix?
Last edited by nspils; 02-09-2006 at 08:25 AM.
it's a huge topic, but in essence, fork creates a child process which is clone of the parent process: it has the same memory image, credentials, open files etc.
exec creates a new process that is usually a different program. The precise details depend of course on the specific variant called.
system() is a syscall that launches a new process and takes an executable file as its only argument. It doesn't communicate with the parent process in any other way.
Last Post: 05-27-2008, 12:17 PM
By Saiful in forum VB Classic
Last Post: 10-15-2000, 04:18 PM
By Developer Express - Ray in forum vb.announcements
Last Post: 08-01-2000, 08:24 AM
By Myqu in forum Database
Last Post: 03-22-2000, 05:54 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center