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() "overwrite" the stack
size limitation of ulimit -s ?

Daniel.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to