Keil™, An ARM® Company

RTX51 Tiny User's Guide

Task Scheduler

The Task Scheduler assigns the processor to a task. The RTX51 Tiny scheduler determines which task to run using to the following rules:

The current task is interrupted if:

  1. The task calls the os_switch_task and another task is ready to run.
  2. The task calls the os_wait function and the specified event has not occurred.
  3. The task has executed for longer than the defined round-robin time slice.

Another task is started if:

  1. No other task is running.
  2. The task to be started is in the READY State or TIME-OUT State.