added a threaded program. you will need pthread win-32 to use it.
Added pthreads win-32 files to repository. now just throw the .h file into your minGW/include folder and put the .a and .lib files into you minGW/lib folder. that should do the trick.