What\'s a better way to start a thread, _beginthread
, _beginthreadx
or CreateThread
?
I\'m trying to determine what are the adv
CreateThread()
once was a no-no because the CRT would be incorrectly initialize/clean up. But this is now history: One can now (using VS2010 and probably a few versions back) call CreateThread()
without breaking the CRT.
Here is the official MS confirmation. It states one exception:
Actually, the only function that should not be used in a thread created with
CreateThread()
is thesignal()
function.
However, from consistence point of view, I personally prefer to keep using _beginthreadex()
.