thread in C?

This is a discussion on thread in C? within the C Programming forums, part of the General Programming Boards category; I have done some java programming and I want to know how to do threads in C? I have never ...

  1. #1
    Ant
    Ant is offline
    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,789
    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
    Ant
    Ant is offline
    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, 04: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, 07:50 AM
  4. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 10:34 PM
  5. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM

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