首页> 外文会议>7th ACM conference on embedded networked sensor systems 2009 >TOSThreads: Thread-safe and Non-Invasive Preemption in TinyOS
【24h】

TOSThreads: Thread-safe and Non-Invasive Preemption in TinyOS

机译:TOSThreads:TinyOS中的线程安全和非侵入式抢占

获取原文

摘要

Many threads packages have been proposed for programming wireless sensor platforms. However, many sensor network operating systems still choose to provide an event-driven model, due to efficiency concerns. We present TOS-Threads, a threads package for TinyOS that combines the ease of a threaded programming model with the efficiency of an event-based kernel. TOSThreads is backwards compatible with existing TinyOS code, supports an evolvable, thread-safe kernel API, and enables flexible application development through dynamic linking and loading. In TOSThreads, TinyOS code runs at a higher priority than application threads and all kernel operations are invoked only via message passing, never directly, ensuring thread-safety while enabling maximal concurrency. The TOSThreads package is non-invasive; it does not require any large-scale changes to existing TinyOS code.We demonstrate that TOSThreads context switches and system calls introduce an overhead of less than 0.92% and that dynamic linking and loading takes as little as 90 ms for a representative sensing application. We compare different programming models built using TOSThreads, including standard C with blocking system calls and a reimplementa-tion of Tenet. Additionally, we demonstrate that TOSThreads is able to run computationally intensive tasks without adversely affecting the timing of critical OS services.
机译:已经提出了许多用于对无线传感器平台进行编程的线程包。但是,由于效率方面的考虑,许多传感器网络操作系统仍选择提供事件驱动模型。我们介绍了TOS-Threads,这是TinyOS的线程包,它将线程编程模型的易用性与基于事件的内核的效率相结合。 TOSThreads向后兼容现有的TinyOS代码,支持可演化的线程安全内核API,并通过动态链接和加载实现灵活的应用程序开发。在TOSThreads中,TinyOS代码的运行优先级高于应用程序线程,并且所有内核操作仅通过消息传递来调用,而从不直接调用,从而在确保最大并发性的同时确保线程安全。 TOSThreads软件包是非侵入性的;它不需要对现有的TinyOS代码进行任何大规模的更改。 我们证明,TOSThreads上下文切换和系统调用引入的开销小于0.92%,并且对于代表性的传感应用程序,动态链接和加载仅花费90毫秒。我们比较了使用TOSThreads构建的不同编程模型,包括具有阻止系统调用和重新实现Tenet的标准C。此外,我们证明TOSThreads能够运行计算密集型任务,而不会严重影响关键OS服务的时间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号