Thread: thread in C?

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    2

    thread in C?

    I have done some java programming and I want to know how to do threads in C?
    I have never seen one in C before.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    You can do them, but I think its OS dependant.......

    For a windows PC, you can use the API function CreateThread(). You need the <windows.h> to use it.

    Its not as easy to use as in Java though

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    2
    But how to do them in linux console program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thread Synchronization in Win32
    By passionate_guy in forum C Programming
    Replies: 0
    Last Post: 02-06-2006, 05:34 AM
  2. [code] Win32 Thread Object
    By Codeplug in forum Windows Programming
    Replies: 0
    Last Post: 06-03-2005, 03:55 PM
  3. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  4. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 11:34 PM
  5. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM