Results 1 to 2 of 2
  1. #1

    Default Unix fork & win32 thread system call....whats the difference?

    Can someone explain to me what is the difference between the UNIX fork system call and the Win32 CreateThread system call.

    Thank you.

  2. #2

    Default Re: Unix fork & win32 thread system call....whats the difference?

    In unix fork() creates an exact duplicate of the process that called it. The new process is completely separate to the origional, the only difference is the value returned by the fork() function in the two copies which is used to distinguish between the parent and the child process.
    If you want to share data between processes you have to set something up yourself.

    I'm not too familiar with win32, but in general, threads all share the chunk of memory. So they are faster to create because you don't have to duplicate everything, but there are more concurrency issues because they are all working with the same variables etc.

    Google will find you better explanations. fork() is very well documented. Try a search for "The UNIX Time-Sharing System" which is the paper by the creators of unix that first described how it works.

Similar Threads

  1. MMC MMC+, Whats the difference?
    By a helpless random in forum PC World Chat
    Replies: 4
    Last Post: 14-05-2008, 08:37 PM
  2. Whats the difference between the 3 of these?
    By ronyville in forum PressF1
    Replies: 5
    Last Post: 09-08-2007, 07:20 PM
  3. Replies: 2
    Last Post: 04-08-2006, 09:34 AM
  4. Replies: 2
    Last Post: 23-02-2004, 08:39 PM
  5. Whats the difference
    By in forum PressF1
    Replies: 3
    Last Post: 22-08-2001, 11:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts