Shared-stack cooperative threads
Boncheol Gu, Yongtae Kim, Junyoung Heo, Yookun Cho · 2007
Multithreaded sensor operating systems provide the paradigm of threads which enables programmers to program and maintain their applications more easily. However, a lot of memory space can be wasted due to the fact that a fixed-size stack is allocated for each thread. In this paper, we propose the shared-stack cooperative threads which can combine the simplicity of the multithreaded programming with the performance and scalability of event-driven systems. Our experimental results show that shared-stack cooperative threads utilize memory space more efficiently with some affordable context switching overhead for threading while providing programmers with the ease of multithreaded programming.