Stackless preemptive multi-threading for TinyOS

10Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Programming support for multi-threaded applications on embedded microcontroller platforms has attracted a considerable amount of research attention in the recent years. This paper is focused on this problem, and presents UnStacked C, a source-to-source transformation that can translate multithreaded programs into stackless continuations. The transformation can support legacy code by not requiring any changes to application code, and only modifications to the underlying threading library. We describe the details of UnStacked C in the context of the TinyOS operating system for wireless sensor network applications. We present a modified implementation of the TOSThreads library for TinyOS, and show how existing applications programmed using TOSThreads can be automatically transformed to use stackless threads with only modifications in the build process. By eliminating the need to allocate individual thread stacks and by supporting lazy thread preemption, UnStacked C enables a considerable saving of memory used and power consumed, respectively. © 2011 IEEE.

Cite

CITATION STYLE

APA

McCartney, W. P., & Sridhar, N. (2011). Stackless preemptive multi-threading for TinyOS. In 2011 International Conference on Distributed Computing in Sensor Systems and Workshops, DCOSS’11. https://doi.org/10.1109/DCOSS.2011.5982136

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free