Re: [Dev-C++] Recommended threading API?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: hhh h. <the...@ho...> - 2008-03-27 09:42:02
|
Hello Philip : That is a good question, but easily answered with a overview of CreateThread in msdn2 . The following is an excert from http://msdn2.microsoft.com/en-us/library/ms682453(VS.85).aspx :<quote>A thread in an executable that calls the C run-time library (CRT) should use the _beginthreadex and _endthreadex functions for thread management rather than CreateThread and ExitThread; this requires the use of the multi-threaded version of the CRT. If a thread created using CreateThread calls the CRT, the CRT may terminate the process in low-memory conditions</quote> Hopefully that answers your question.Happy Coding :D From: phi...@pb...: dev...@li...: Thu, 27 Mar 2008 05:18:29 +0100Subject: [Dev-C++] Recommended threading API? Hello everyone, I have a quick question regarding the multithreading functions on Windows in relation with MinGw. Does it matter if I use _beginthreadex or CreateThread, is one better than the other when using MinGw or are they the same? I am asking because I read somewhere that applications that have a static link to the c runtime library should not use CreateThread, but I do not know if this is true for MinGw executables. Any information on this would be very much appreciated. Thanks in advance. Regards Philip Bennefall Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! Confira já! _________________________________________________________________ Cansado de espaço para só 50 fotos? Conheça o Spaces, o site de relacionamentos com até 6,000 fotos! http://www.amigosdomessenger.com.br |