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.
A version of this page is also available for
4/8/2010

As a preemptive multitasking OS, Windows Mobile bases preemption solely on the priority of the thread; that is, Windows Mobile schedules threads with a higher priority to run first. Threads at the same priority level run in a round-robin fashion with each thread receiving a quantum, or slice, of execution time.

Because Windows Mobile enables an application to set the quantum on a thread-by-thread basis, you can adapt the scheduler to the current needs of your application. To adjust the quantum, Windows Mobile provides two functions:

Altering the quantum for a specified thread does not affect threads with a higher priority.

See Also