Scheduler

MQX Lite manages the way tasks share the processor runtime (context switching) by using the Scheduler. Only one task is active (owns the processor) at any given time. The only scheduling policy that MQX Lite offers is FIFO, which is the priority based pre-emptive scheduler. The active task is the highest-priority task that is in "ready state". The active task runs until any of the following occurs:

Scheduling is controlled by the task state and the position of the task in the ready queue. Each task is in one of the following logical states:

Each task priority level has a ready queue. The active task is the first in the highest-priority ready queue. Tasks in each ready queue are in the FIFO order.

The list of MQX Lite Scheduler component API functions (_sched_ prefix) is provided together with detailed description of each function in the MQX Lite Reference Manual ( MQXLITERM).

Figure 1. MQX Lite Task Logical States

MQX Lite Task Logical States




This Information Center content is based on MQXLITEUG Rev 1.1, 09/2013, which can be downloaded from www.freescale.com.