-4
\$\begingroup\$

When multithreading a game what do i need to think about when picking the Libraries when developing for pc? I have been looking at process.h and was wondering if there are any big downsides (like speed or stability) whit this library and if i should look at something else?

\$\endgroup\$
  • 1
    \$\begingroup\$ You should at least check if the functions and classes you use from that library are thread safe. \$\endgroup\$ – Roy T. May 31 '12 at 19:07
  • \$\begingroup\$ OffTopic. Programming related - belongs to StackOverflow. \$\endgroup\$ – kravemir Jul 2 '12 at 18:18
1
\$\begingroup\$

The only decent C++ multithreading libraries are TBB and Microsoft's PPL. Picking anything else is begging for trouble.

\$\endgroup\$
  • 2
    \$\begingroup\$ Care to share answer to question: Why? \$\endgroup\$ – edin-m Jun 30 '12 at 10:44
0
\$\begingroup\$

Your question is a bit vague ("a game"... any game?) but I doubt you will have trouble with a "library" so much as your actual engine design. The harder/est part is to code your engine in such a way is that multi-threading is implemented correctly; picking a library (probably more appropriately, a language) that handles this well is almost trivial.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.