Pages

Monday, February 15, 2010

Multi Threading in Win32

To do threading in win32, you have the option of CreateThread() Function or _beginthread(). The best option to use is _beginthread() or _beginthreadex() because if you happen to use C Runtime (CRT) Function such as malloc, free etc. They will create a thread and carry out the function. To prevent conflict with these CRT’s thread, it is advisable to use _beginthread().

The source of article specifying this issue can be found in msdn

http://support.microsoft.com/kb/104641

No comments:

Post a Comment