I can see how to set the size via pthread_attr_setstacksize() for a new
thread, prior to creating it, but how do you change the main (already
running) thread’s stack size?
- thanks for any replys.
I can see how to set the size via pthread_attr_setstacksize() for a new
thread, prior to creating it, but how do you change the main (already
running) thread’s stack size?
You can’t.
I may have done a poor job describing the problem.
I don’t want to change the stack size after it is created, but couldn’t
see how to specify the main thread’s stack size (since I don’t
create it) before it is created.
Someone pointed out to me that I could use the -N compiler option to
over-ride the default thread size when I compile the main application.
Thanks for responding.