Defining the Scheduling (Generic OS)

Note

This instruction is valid for the PC and Prototyping targets.

  1. In the Scheduling combo box, assign one of three possible scheduling modes to the task.

    Note

    This option is not available for init and interrupt tasks.

    The following modes are available:

    cooperative

    If you select cooperative, the task will interrupt a running task of lower priority only after the currently running process is finished.

    Note

    cooperative is the only scheduling type available for the PC target.

    preemptive

    If you select preemptive, the task will interrupt a running task with lower priority immediately. The currently running process is interrupted and will be resumed after the interrupting task is finished.

Since all preemptive tasks have a higher priority than cooperative tasks, the effective interrupt behavior is as follows:

Details on the scheduling modes are given in Scheduling.

See also

Selecting the Task Type

Assigning a Priority

Defining the Scheduling (RTA-OSEK + Generic OSEK)

Selecting a Trigger (ISR Source)

Setting Period, Delay, and Max. Number of Activations

Setting the Autostart Option

Setting Up Hook Routines