Thread: fork in windows os

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    fork in windows os

    iam using fork in unix c.
    now i have to execute the code in windows.
    iam getting problem at fork.
    so can u tell me the equalent function for fork.
    thank u.
    sree

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by cnu_sree View Post
    iam using fork in unix c.
    now i have to execute the code in windows.
    iam getting problem at fork.
    so can u tell me the equalent function for fork.
    thank u.
    sree
    The concept of forking does not exist on Windows. It can be simulated (which Cygwin does) but it is very inefficient.

    Do you actually want to fork the process, or are you trying to launch another program?

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    90
    actually wht i need is i have 2 functions ,and i have to run these two functions at a time. so how can i do this
    thank u
    sree

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Threads, perhaps, if I get this correctly?
    See CreateThread on MSDN or your favorite documentation spot.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. Linux OS to Windows OS code
    By sw9830 in forum C Programming
    Replies: 2
    Last Post: 02-28-2003, 03:11 PM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM