Multiprogramming a 64kB Computer Safely and Efficiently
TOSThreads: thread-safe and non-invasive preemption in TinyOS