Issues with Multithreading on Windows CE
Hi all
I am writing a multithreaded program for Windows CE 4.2.
May I know what are the issues that have to be taken care of?
Prior to this post, some research has been done with regard to this
topic. It seems that _beginthreadex is no longer supported on this
version of Windows CE. There are also rumours that CreateThread() is
thread safe for Windows CE. Are these true?
I have tried compiling a trial program with _beginthreadex(), but the
compiler could not find the 'process.h' file which i tried to include.
Should I try solving this problem or use CreateThread() instead?
Also, do I need to use the /MT parameter when compiling using eVC++ 4?
Thank you!
Ponce
Re: Issues with Multithreading on Windows CE
>It seems that _beginthreadex is no longer supported on this version of[color=blue]
>Windows CE. There are also rumors that CreateThread() is thread safe for
>Windows CE. Are these true?[/color]
Those are not rumors, they are facts. I don't know why Microsoft chose not
to implement a simple version of _beginthreadex for compatibility though.
Since the C Runtime library is implemented as part of CoreDLL.DLL it is
always multi threaded already.
You don't need any special additional switches or settings to support multi
threading in Windows CE. It is inherently assumed for ALL applications.
--
Steve Maillet
EmbeddedFusion
[url]www.EmbeddedFusion.com[/url]
smaillet at EmbeddedFusion dot com
Re: Issues with Multithreading on Windows CE