RTX166 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. This function signals RTX166 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.