Microsoft Windows CE 3.0  

Priority Levels

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

As a preemptive, multitasking operating system, Windows CE supports up to 32 processes running simultaneously within the system. A process consists of one or more threads. Each thread represents an independent portion of a process. One thread is designated as the primary thread for the process. A process can also create an unspecified number of additional threads. The actual number of additional threads is limited only by available system resources.

Effective with version 3.0, Windows CE offers 256 priority levels, with 0 being the highest priority, and 255 being the lowest priority. Levels 255 through 248 are defined for application threads. Many of the higher priority levels (247 through 0) are assigned to real-time applications, drivers, and system processes. In order to prevent random applications from degrading the performance of the system, the OEM may restrict all priority levels between 247 and 0 to OEM-specified applications. For more information on your target device's available priority levels consult the OEM.

Note   The 8 priority levels available in earlier versions of Windows CE are mapped to priority levels 248 through 255.

Use the CeSetThreadPriorityand CeGetThreadPriorityfunctions to assign a priority level to a specific thread. Use the CeGetThreadPriorityto retrieve the priority level of a specified thread.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.