Thread: UNIX fork() equivalent in Windows

  1. #1
    Registered User argon's Avatar
    Join Date
    Jan 2002
    Posts
    12

    Question UNIX fork() equivalent in Windows

    Hello everyone,

    Does anyone know if there's an equivalent in Windows to UNIX's fork() system call?

    I have a system already workin in UNIX, but now I need to create a similar one in Windows, and the only thing I've found is the spawn family which would be the equivalent to exec.

    Thanks in advance
    Greetings from México

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    I don't think there is an exact equivalent, but you can use CreateProcess() to get more or less the same functionality.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Since the question has already been answered I'll give you some advice. You should use the cygwin compiler. It is a native unix compiler that uses a windows wrapper to port programs written for unix to windows without any changes to the code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Setting up a Unix box
    By @nthony in forum Tech Board
    Replies: 6
    Last Post: 07-22-2007, 10:22 PM
  2. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM
  3. How May I connect from Windows NT to Unix
    By jose luis in forum C Programming
    Replies: 3
    Last Post: 08-22-2002, 03:12 PM
  4. Windows or Unix environment
    By ghe1 in forum Windows Programming
    Replies: 5
    Last Post: 02-19-2002, 11:37 AM
  5. unix, windows
    By stef in forum C Programming
    Replies: 3
    Last Post: 09-14-2001, 03:37 PM