Study on Approach of Determining Size of µC/OS-II Task Stack
|
Title | Study on Approach of Determining Size of µC/OS-II Task Stack |
Authors | |
Abstract | When μC/OS-II is taken as the operating system of an embedded system, the stack size of every task is needed to be assigned, but it is difficult to determine the stack size of µC/OS-II task with existing methods. In this paper, an approach of determining stack size of µC/OS-II task was presented. In order to clarify the memory space size which is needed by single element in a µC/OS-II task stack, the contents of µC/OS-II task stack were analyzed. Secondly, some tree structures were defined, which can describe the extreme usage of task stack. Lastly, two formulas used to determine size of task stack were presented. As long as the source codes of µC/OS-II operating system and its task are obtained, the stack size of the task can be computed accurately with the approach presented by this paper. The result acquired with the approach is the maximum size of task stack, it can meet the needs of µC/OS-II task for stack space at any cases. |
Publisher | ACADEMY PUBLISHER |
Date | 2011-04-01 |
Source | Journal of Computers Vol 6, No 4 (2011) |
Rights | Copyright © ACADEMY PUBLISHER - All Rights Reserved.To request permission, please check out URL: http://www.academypublisher.com/copyrightpermission.html. |