Keil™, An ARM® Company

RTX51 Tiny User's Guide

Cooperative Task Switching

If you disable Round-Robin Multitasking, you must design and implement your tasks so they work cooperatively. Specifically, you must call the os_wait function or the os_switch_task function somewhere in each task. These functions signal RTX51 Tiny to switch to another task.

The difference between os_wait and os_switch_task is that os_wait allows your task to wait for an event while os_switch_task switches to another ready task immediately.