Thread priorities in the .NET Compact Framework

G

Guest

As I understood .NET Compact Framework does not support thread priorities as in the .NET Framework
This makes almost impossible for us to design our realtime applications using Windows CE .NET an
..NET Compact Framework. I wonder how other developers overcome lack of thread priorities as in th
..NET Framework? Are there any other methods which replace thread priorities? Are Windows CE .NET an
..NET Compact Framework wrong platform to build realtime applications? Could anyone answer thes
questions. Thanks
 
C

Chris Tacke, eMVP

It has thread priorities - 7 of them I believe.

As for real-time, it's not possible to get real-time behavior from a system
with an uncontrollable GC. You have no control over when GC will happen or
when cached JITted code will be tossed or re-JITted. There's simply no
possible way to get real time behavior with the CF.

I'd be shocked if you could get it with the full framework on a PC either
for the same reasons, but I've not got a lot of experience there.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Ottadev said:
As I understood .NET Compact Framework does not support thread priorities as in the .NET Framework.
This makes almost impossible for us to design our realtime applications using Windows CE .NET and
.NET Compact Framework. I wonder how other developers overcome lack of thread priorities as in the
.NET Framework? Are there any other methods which replace thread
priorities? Are Windows CE .NET and
 
D

Daniel Moth

Hi

It may state that but the fact is that .NETcf does support the 5 priorities
same as the desktop...

The problem you'll find is that there are 2 threads that every .NETcf app
has whose priority you cannot change... To find out what these extra threads
are and whether their presence would change your use of priorities see the
google results here:
http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework

Cheers
Daniel

Ottadev said:
Thanks for your reply. Interesting note regarding realtime applications and .NET framework.

As for thread priorities. See the following article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/net_vs_netcf.asp

which clearly stated in Threading section: ".NET Compact Framework does
not support priorities as in the .NET Framework. "
 
C

Chris Tacke, eMVP

All I can say is that it's wrong. I've used them.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Ottadev said:
Thanks for your reply. Interesting note regarding realtime applications and .NET framework.

As for thread priorities. See the following article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/net_vs_netcf.asp

which clearly stated in Threading section: ".NET Compact Framework does
not support priorities as in the .NET Framework. "
 
G

Geoff Schwab [MSFT]

Chris is correct and sorry for the confusion, I will give that article a
test read and update it. As for the threads created by the .NET Compact
Framework mentioned by Daniel, here is a description of them in the FAQ:

7.8. What threads are created by a .NET Compact Framework application?
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx#7.8

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Maarten Struys, eMVP

If you have the need for hard real-time behavior you have to write your hard
real-time functionality in native code. You could develop your UI in managed
code though. Take a look at this article for more information:
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

Ottadev said:
As I understood .NET Compact Framework does not support thread priorities as in the .NET Framework.
This makes almost impossible for us to design our realtime applications using Windows CE .NET and
.NET Compact Framework. I wonder how other developers overcome lack of thread priorities as in the
.NET Framework? Are there any other methods which replace thread
priorities? Are Windows CE .NET and
 

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