A lightweight protothread library, allowing Arduino compatibles to multitask in an embedded environment.
Click here for a basic "flash two LEDs at different rates" example project.
Click here for a more interesting example project that flashes a single LED at two different rates.