Title :
A Dynamic Stack Allocating Method in Multi-Threaded Operating Systems for Wireless Sensor Network Platforms
Author :
Kim, Sang Cheol ; Kim, Haeyong ; Song, JunKeun ; Mah, Pyeongsoo
Author_Institution :
Electron. & Telecommun. Res. Inst., Daejeon
Abstract :
Typical sensor nodes have a small amount of memory with 2-10 KB and even no hardware devices for memory protection such as MMU. Consider multi-threaded sensor applications running on such a memory-constrained hardware platform. In most sensor operating systems, it is assumed that thread stacks are statically allocated. However, this static allocation is not appropriate for memory constrained sensor hardware because shortage of stack memory space can bring in the stack overflow problem. As an alternative method, this paper proposes a dynamic stack allocating method, which enables to adaptively adjust the stack size of each threads based on the stack usage information. The information of the stack usage is obtained by measurement at run-time. The proposed method also defines a stack reallocating problem and solves it in n steps, where n is the number of thread stacks. Our experimental results showed that the proposed method significantly minimizes the waste of thread stack memory space compared to the static stack allocating method.
Keywords :
computerised instrumentation; multi-threading; network operating systems; wireless sensor networks; dynamic stack allocating method; memory constrained sensor hardware; memory-constrained hardware platform; multi-threaded operating systems; multithreaded sensor; sensor operating systems; wireless sensor network platforms; Hardware; Memory management; Operating systems; Protection; Runtime; Sensor systems; Sensor systems and applications; Size control; Wireless sensor networks; Yarn;
Conference_Titel :
Consumer Electronics, 2007. ISCE 2007. IEEE International Symposium on
Conference_Location :
Irving, TX
Print_ISBN :
978-1-4244-1109-2
Electronic_ISBN :
978-1-4244-1110-8
DOI :
10.1109/ISCE.2007.4382142