Using Protothreads for Sensor Node Programming

Using Protothreads for Sensor Node Programming
复制标题

使用 Protothreads 进行传感器节点编程

DOI:
--
复制
发表时间:
2005
期刊:
--
影响因子:
--
通讯作者:
T. Voigt
T. Voigt
中科院分区:
--
文献类型:
--
作者:
A. Dunkels;Oliver Schmidt;T. Voigt

文献摘要

被引文献

相似文献

无线传感器网络由微型设备组成 通常在能源、处理能力和内存方面有严重的资源限制。为了在有限的内存中高效工作,此类设备的许多操作系统都基于事件驱动模型而不是多线程。虽然事件驱动系统可以减少内存使用,但它们需要将程序开发为显式状态机。由于将程序实现为显式状态机很困难,因此为事件驱动系统开发、维护和调试程序也很困难。在本文中,我们介绍了原型线程,这是事件驱动的传感器网络系统的编程抽象。原型线程简化了事件驱动系统之上高级功能的实现,而不会显着增加内存需求。原始线程的内存需求是无符号整数。
Wireless sensor networks consist of tiny devices that usually have severe resource constraints in terms of energy, processing power and memory. In order to work efficiently within the constrained memory, many operating systems for such devices are based on an event-driven model rather than on multi-threading. While event-driven systems allow for reduced memory usage, they require programs to be developed as explicit state machines. Since implementing programs as explicit state machines is hard, developing, maintaining, and debugging programs for event-driven systems is difficult. In this paper, we introduce protothreads, a programming abstraction for event-driven sensor network systems. Protothreads simplify implementation of high-level functionality on top of event-driven systems, without significantly increasing the memory requirements. The memory requirement of a protothread is that of an unsigned integer.