A simple cooperative multitasking (non-blocking) system.