All Forums
 Microsoft Windows CE
 General CE
 Default System Thread Priorities
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 05 Mar 2003 :  10:42:36  Show Profile  Email Poster
The CE Thread priority system has 256 priority levels numbered 0 through 255. Priority level 0 is the highest priority level. The original 8 priority levels for Microsoft® Windows® CE 2.12 and previous versions are mapped to levels 248 through 255.

Applications and device drivers should use the CeGetThreadPriority and CeSetThreadPriority APIs, instead of the legacy APIs GetThreadPriority and SetThreadPriority. The legacy APIs are still available with the same interfaces as before, but those APIs have access only to the original 8 priority levels.

The priority level system is broken into four ranges. These ranges are shown in the following table.
LevelsDescription
0 through 96Reserved for real-time above drivers.
97 through 152Used by the default Windows CE–based device drivers.
153 through 247Reserved for real-time below drivers.
248 through 255Maps to non-real-time priorities.

The following table lists the default priority levels associated with device drivers. You can override these values either by changing the source code for the drivers, or by setting values in the registry. The registry paths shown in the following table assume that the root Drivers key is HKEY_LOCAL_MACHINE\Drivers\BuiltIn; keep in mind that the registry uses hexadecimal values for the priority levels.



Decimal priorityHexadecimal priorityDevice driverOverride
200x14Permedia3 vertical retraceHKEY_LOCAL_MACHINE\Drivers\Display\Permedia3\Priority256
990x63Power Manager resume threadHKEY_LOCAL_MACHINE\CurrentControlSet\Control\Power\ResumePriority256
1000x64USB FunctionNone
101,
also uses +1 and -1 relative priorities
0x65, also uses +1 and -1 relative prioritiesUSB OHCDHKEY_LOCAL_MACHINE\Drivers\BuiltIn\OHCI\Priority256
101,
also uses +1, +3, +5 and +7 relative priorities
0x65, also uses +1 and -1 relative prioritiesUSB UHCDHKEY_LOCAL_MACHINE\Drivers\BuiltIn\UHCI\Priority256
1030x67SerialHKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial\Priority256
105,
also uses +1 and +2 relative priorities
0x69,
also uses +1 and -1 relative priorities
PCMCIAHKEY_LOCAL_MACHINE\Drivers\PCMCIA\Priority256
1090x6DTouchHKEY_LOCAL_MACHINE\Drivers\BuiltIn\Touch\Priority256
110,
also uses +2 and +4 relative priorities
0x6E,
also uses +1 and -1 relative priorities
IRSIRHKEY_LOCAL_MACHINE\Comm\Irsir1\Parms\Priority256
116,
also uses +2, +4, +6, +8, +10 and +12 relative priorities
0x74,
also uses +1 and -1 relative priorities
NDISHKEY_LOCAL_MACHINE\Drivers\BuiltIn\NDIS\Priority256
1310x83KITLOverride in the OAL. In OEMInit, set g_dwKITLThreadPriority (extern DWORD) to the desired priority before calling KitlInit.
1310x83VMINIHKEY_LOCAL_MACHINE\Comm\VMini\Priority256
1320x84CxPortHKEY_LOCAL_MACHINE\Comm\Cxport\Priority256
1450x91PS/2 KeyboardHKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\Priority256
1480x94IR CommHKEY_LOCAL_MACHINE\Drivers\BuiltIn\IrComm\Priority256
1500x96TAPI (Unimodem)HKEY_LOCAL_MACHINE\Drivers\Unimodem\Priority256
2100xD2WaveDevHKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev\Priority256
2480xF8PM (Power Manager)HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Power\Priority256
2490xF9TVIA5000 DisplayHKEY_LOCAL_MACHINE\Drivers\Display\TVIA5000\Priority256
2490xF9PS/2 MouseHKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\MOUSE\Priority256
2490xF9Power Manager device registration threadHKEY_LOCAL_MACHINE\CurrentControlSet\Control\Power\PnPPriority256
2490xF9Power Manager system management threadHKEY_LOCAL_MACHINE\CurrentControlSet\Control\Power\SystemPriority256
2490xF9Power Manager activity timer threadHKEY_LOCAL_MACHINE\CurrentControlSet\Control\Power\TimerPriority256
2500xFAWaveAPIHKEY_LOCAL_MACHINE\Drivers\BuiltIn\WAPIMAN\Priority256
2510xFBPower Manager battery monitor threadHKEY_LOCAL_MACHINE\CurrentControlSet\Control\Power\PowerPollPriority256


Source: http://msdn.microsoft.com/library/en-us/wceddk40/html/cxconReal-TimePrioritySystemLevels.asp


Edited by akidder 7-Dec2004: Add link to MSDN source.

jnosek

3 Posts

Posted - 02 Mar 2007 :  16:38:06  Show Profile  Email Poster
This article on the MSDN:
http://msdn2.microsoft.com/en-us/library/aa450618.aspx

Has the same information in regards to Windows CE 5.0.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000