Original Post
Hi, I want to add threading to my game, so I can do FM2006 style processing in the background.(it's a footy manager too) but I'm not sure about a few things. What's the best approach to using threads? Should I use native system calls for each platform(No idea how different they are?) or should I use a multi-system application like booast? (Please bear in mind I'd like to port to ps3 if it does have the promised linux kit with it) For now I have threads working fine using the winapi, but I'm wonder what to do to avoid data clashing, should I use mutexes? (And if so, my own, or the supplied?) or are there better techniques? I'm using C++ 2005 Express Free edition with the windows platform sdk if that matters. Also, I've heard that Visual C++ adds it's own thread stuff, including a thread keyword to make copies of all globals to avoid data clashes. Is this advised, or is it slow and better to use locking where needed with good design? Thanks.