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 07: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, 11:17 AM
By Saiful in forum VB Classic
Last Post: 10-15-2000, 03:18 PM
By Developer Express - Ray in forum vb.announcements
Last Post: 08-01-2000, 07:24 AM
By Myqu in forum Database
Last Post: 03-22-2000, 04:54 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL