Protothreads: simplifying event-driven programming of memory-constrained embedded systems
tinygals : a programming model for event - driven embedded systems .