-
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
Deb
-
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.
Danny Kalev
Similar Threads
-
Replies: 5
Last Post: 05-27-2008, 11:17 AM
-
By Saiful in forum VB Classic
Replies: 6
Last Post: 10-15-2000, 03:18 PM
-
By Developer Express - Ray in forum vb.announcements
Replies: 0
Last Post: 08-01-2000, 07:24 AM
-
By Myqu in forum Database
Replies: 1
Last Post: 03-22-2000, 04:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks