Daniel Schnell wrote:
Gilles Chanteperdrix wrote:
Pay attention to the stack size of the user-space tasks: the default
of 8 Megabytes will exhaust your RAM rapidly. So, you should either :
- set the default stack size with ulimit;
- or set the the stack size of the created threads, but in this case
the main thread will have an 8 Megabytes stack.
In order to set the stack size of a thread, use
pthread_attr_setstacksize if using the POSIX skin or the stksize
parameter of rt_task_create if using the native skin.
If I set the stacksize generally via ulimit -s and additionally via the
pthread_attr_setstacksize() how is the precedence of one of these calls
over the other ? Does pthread_attr_setstacksize
Setting the stack size with pthread_attr_setstacksize seems to allow a
stack greater than the limit fixed by ulimit, but I do not think it is
wise to rely on such a behaviour.
--
Gilles Chanteperdrix
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help