DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Location
    UK
    Posts
    22

    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

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    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.

  3. #3
    Join Date
    Nov 2003
    Posts
    4,118
    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

  1. Replies: 5
    Last Post: 05-27-2008, 11:17 AM
  2. API For shutting, starting win NT,9x OSes
    By Saiful in forum VB Classic
    Replies: 6
    Last Post: 10-15-2000, 03:18 PM
  3. Replies: 0
    Last Post: 08-01-2000, 07:24 AM
  4. Oracle and SQL Server
    By Myqu in forum Database
    Replies: 1
    Last Post: 03-22-2000, 04:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links