0

I have a win CE application which negotiate with an external serial port.

The serial port protocol has some restricted rules. For example:

If you receive an ANNOUNCE signal, you should send your ACKNOWLEDGE signal up to 3 milliseconds after that otherwise you failed the negotiation!

So I need to my running process (and though running listening thread) to be ran in a high priority mode. I think the OS should delay/postpone ALL uncritical tasks (it includes all form's painting, repainting, updating, etc.). At result the UI maybe not responsive in some times but it is not important.

I want to know if there is a way/workaround to achieve this goal or not.

Mat
  • 202,337
  • 40
  • 393
  • 406
Mahmoud Moravej
  • 8,705
  • 6
  • 46
  • 65

1 Answers1

2

Look at the Smart Device Framework.

http://www.opennetcf.com/library/sdf/

There is a OpenNETCF.ThreadEntry.SetPriority() method.

Léon Pelletier
  • 2,701
  • 2
  • 40
  • 67