I was feared to confront him with more libraries. But i share your oppinion: I think the best way to use theads is via boost, since they will be included into c++0x the same or similar way.
Kondiu: i recommend you to listen to Bazzy. You will counter difficulties with WinAPI Threads, if you are not familiar with WinAPI. Originally i thought this as a joke and provided you with an half-ass example without error handling and stuff.
- The Boost Library Threads are portable and more user friendly. -
But i dont want to stop you if you insist on using WinAPI (for good reasons thats possible) but read MSDN Library and answer yourself the questions: Whats up with all the zeros i wrote there?
How to Join Threads? Whats joining? How are threads managed in Memory? All this kind of boring stuff is pretty urgent to know.