Abstract
There is a long-standing dispute on whether and when thread-based programming should be preferred over the event-based paradigm. This dispute has also extended into the wireless sensor networks domain. Many existing operating systems rely on events due to their efficiency, but make code management difficult. Others rely on threads for developer comfort, but at the cost of reduced runtime efficiency. In this paper we try to combine the best of both worlds by offering a full-fledged cooperative thread abstraction with blocking I/O to the C programmer that is compiled into efficient event-based code. We present the basic code transformations and investigate their efficiency using a representative application case study. We find that RAM usage of generated code competes with hand-written code, but further optimizations are required to reduce the code size and the number of CPU cycles.
Original language | English |
---|---|
Title of host publication | HotEmNets '10 Proceedings of the 6th Workshop on Hot Topics in Embedded Networked Sensors Article No. 8 |
Number of pages | 5 |
Publisher | ACM |
Publication date | 01.12.2010 |
Pages | 8:1--8:5 |
Article number | 8 |
ISBN (Print) | 978-1-4503-0265-4 |
DOIs | |
Publication status | Published - 01.12.2010 |
Event | 6th Workshop on Hot Topics in Embedded Networked Sensors - Killarney, Ireland Duration: 28.06.2010 → 29.06.2010 Conference number: 85135 |