Re: CreateThread

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Alex Blekhman wrote:
"domi" wrote:
If you read the threading information on www.flounder.com, it
will explain why you DONT want to use this api.

No sense.
Windows itself of course never uses _beginthreadex but always
CreateThread.

You aren't Windows, so you should use appropriate thread starting
function (depends on your environment). You almost never use
`CreateThread'.

CreateThread is perfectly fine in most situations. _beginthreadex is only
needed if

(1) The CRT is used from that thread.

AND

(2) The CRT is statically linked.



Alex


.



Relevant Pages

  • Re: CreateThread
    ... will explain why you DONT want to use this api. ... Windows itself of course never uses _beginthreadex but always ... CreateThread. ... You aren't Windows, so you should use appropriate thread starting ...
    (microsoft.public.vc.language)
  • Re: Thread pooling vs. AfxCreateThread() vs. beginthreadex...
    ... This is CreateThread. ... CWinThread::CreateThreadwhich called beginthreadex but only some ... If you are in Win32 world the guys already answered you, ... usingo MFC with? ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Multi thread
    ... Btw, as will mentioned, _beginthreadex() is better than CreateThread. ... A server that get clients commands, ...
    (microsoft.public.vc.language)
  • Re: _beginthreadex not compiling at all - what am I doing wrong?
    ... _beginthreadex correct parameters. ... this variable stgatic, and since this is a thread procedure, making it static is outright ... Another thing is the use of static variables. ... Next thing was that it seemed a problem to replace CreateThread by ...
    (microsoft.public.vc.mfc)
  • Re: CreateThread
    ... The CRT is used from that thread. ... Is there a reason to favor CreateThread over _beginthreadex? ... So as long as you are using a Microsoft compiler, ...
    (microsoft.public.vc.language)