... Mainland. Programming sensor networks using ab-stract regions. In Proc. USENIX/ACM NSDI’04, San Francisco, CA,,March 2004. Protothreads: Simplifying Event-Driven Programming of Memory-Constrained Embedded ... PerformanceKeywordsWireless sensor networks, Embedded systems, Threads1 Introduction Event-driven programming is a common programming model for memory-constrained embedded systems, includ-ing sensor networks. ... of hard real-time systems. 9 ConclusionsWe present protothreads, a novel abstraction for memory-constrained embedded systems. Due to memory-constraints,such systems are often based on an event-driven...