Thread Programming in Windows

I have been working on a program that I think would be speeded up if I could only figure out how to work with threads. I'm using Windows XP, compiling with MinGW.

I have heard that threads with Windows can be compiler specific, so I would prefer general responses or responses specific to MinGW/gcc/g++ where possible.
Last edited on
use pthread for linux:
here is an example
 
http://www.cc.gatech.edu/classes/AY2000/cs6210_spring/pthreads_tutorial.htm 


for windows use normal thread:
here is an example:
 
http://www.codeproject.com/KB/threads/sync.aspx    
Last edited on
Cool thanks. The links from the linux example must be old because their targets don't exist. But the windows one will be good for random guidance.

I might still have some questions in the future though; the posts on CodeProject seem to assume a minimal knowledge I don't have, but hopefully I can pick it up by context.
Topic archived. No new replies allowed.