Dear Giorgio, I do not know how to know the stack size at runtime however, you can know the stack maximum size at compile time (see http://docs.tinyos.net/index.php/Stack_Analysis). I am pretty much sure that task recursion cannot create a stack overflow. Hence there might be some other memory error but this task recursion thing cannot cause problems.
best regards, -- Faisal Aslam University of Freiburg http://cone.informatik.uni-freiburg.de/people/aslam giorgio wrote: > I have read that only one task at time run in tinyos (I use telosb and tinyos > 2.1)and another task can't preempt the running task:is it true ? > Is it possible to know the stack size at run time ?In my program I post many > task and in one case I post the same task many times and I would like to know > if this cause a stack overflow. > I think that when I post a task this goes in a queue and are saved also in > this queue his variables: what is the size of a task in queue of the tasks of > the tinyos ? > I wish to be clear . > Thanks to all > > Giorgio > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > / _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
