RTX166 Tiny User's Guide

Task Scheduler

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

The current task is interrupted if:

  1. The task calls the os_wait function and the specified event has not occurred.
  2. 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.