Realtime threads using .NET CF? Anyone?

  • Thread starter =?ISO-8859-1?Q?Allan_Bo_J=F8rgensen?=
  • Start date
?

=?ISO-8859-1?Q?Allan_Bo_J=F8rgensen?=

Is it possible to use the realtime subsystem of CE.NET to make realtime
managed threads? I'd very much like to have code running C# do something
at extremely regular intervals (40 ms, to be precise, and CE.NET will do
this nicely), but my understanding is that this is not supported by the
..NET CF out of the box. Is there any way to make it work anyway? Will
support come in .NET CF 2.0?

I understand the difficulties of using GC and realtime threads at the
same time, but I'd really like this to work. We have a largish
application framework for measuring and control for the standard
framework on WXP(E), and we'd like to port this to .NET CF on CE.NET and
use it for controlling industrial equipment, and use the realtime
features of CE.NET at the same time. Are we asking for too much?
 
M

Maarten Struys, eMVP

Managed threads themselves are not real-time because of the GS and JITting.
Is it possible to break your application in a real-time part and a not
real-time part? In that case you can write your real-time functionality in
eVC and the rest of it in managed code. You can P/Invoke to collect data
from your real-time functionality. You can take a look at this article for
an idea how to get this working:
http://msdn.microsoft.com/library/en-us/dncenet/html/Real-Time_NETCF.asp

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

------------------
Coming to the Embedded DevCon?
Make sure to attend CEA-HOL3 on Tuesday June 29 or CEA-HOL3R on Wednesday
June 30 for an OpenNETCF.org hands on lab.
Also make sure to stop by for session CEA308 on Thursday July 1st to learn
more about the real-time behavior of the .NETCF.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top