fork in windows os

This is a discussion on fork in windows os within the C Programming forums, part of the General Programming Boards category; iam using fork in unix c. now i have to execute the code in windows. iam getting problem at fork. ...

  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
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    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
    Posts
    23,020
    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, 03:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 06:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 03: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, 11:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21