Defining the Scheduling (Generic OS)
Note |
|---|
This instruction is valid for the PC and Prototyping targets. |
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:
- Cooperative tasks never interrupt preemptive tasks.
- Cooperative tasks interrupt each other after the currently running process is finished (or even the task if the task to be interrupted has only one process assigned).
- Preemptive tasks always interrupt immediately.
Details on the scheduling modes are given in Scheduling.
See also
Defining the Scheduling (RTA-OSEK + Generic OSEK)
Selecting a Trigger (ISR Source)