Real-time multitasking in Arduino
TOSThreads: thread-safe and non-invasive preemption in TinyOS