Share via


Setting the Thread Quantum (Windows Embedded CE 6.0)

1/6/2010

As a preemptive multitasking OS, Windows Embedded CE bases preemption solely on the priority of the thread; that is, Windows Embedded CE 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 Embedded CE 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 Embedded CE provides two functions:

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

See Also

Concepts

Timer and Scheduling Management