Scheduling

The operating system schedules the execution of processes defined in the modules. The definition of the schedule consists of grouping processes into sequences where each sequence defines a task in the operating system task schedule. The tasks are activated by the operating system in different modes, for instance periodically by timers, or by software or external events.

The figure above shows two tasks with processes assigned to them. Task1 is activated every 10 ms, and has a higher priority than Task2, which is activated every 20 ms. The running times of the processes are as follows: p1= 2 ms, p2 = 1 ms, p3= 2 ms, p4 = 1 ms, p5 = 1 ms. The scheduling would then look like this:

Realtime operating systems know the following kinds of scheduling:

See also

Cooperative Scheduling

Preemptive Scheduling