Click to See Complete Forum and Search --> : threads under C


plinius
August 2nd, 2005, 11:58 AM
OK. I've red some of the post here in the forum and saw that most of the multithread questiosn were for MSVC or for C++.

Can anyone give me a starting point for threads (I know of www.google.be ), what are the important "keywords" I should search for?
Also, can someone give me some C thread-programming-examples ?

I've found some C++ examples, but haven't found any C examples.

Thanks in advance.

cvogt61457
August 3rd, 2005, 01:53 PM
There are small examples in MSDN in _beginthread, _beginthreadex, and
CreateThread.

MSDN link to _beginthread, _beginthreadex (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__beginthread.2c_._beginthreadex.asp)
MSDN link to CreateThread (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createthread.asp)

The real development comes with synchronization. What to use and when?

plinius
August 3rd, 2005, 02:48 PM
Thanks, but I decided to use pthreads (for which I've found some good tutorials).

NMTop40
August 5th, 2005, 10:02 AM
If you can find a pthread library that runs on Windows.

plinius
August 5th, 2005, 04:39 PM
I did:
http://sources.redhat.com/pthreads-win32/