NDK increase Stack Size

2,239 views
Skip to first unread message

David_lavi

unread,
Dec 12, 2010, 2:59:42 PM12/12/10
to android-ndk
Hi
I am writing multi-thread application in c++, I would like to increase
stack size and
I have several questions:
1. How Can detect stack size?
2. How can i increase stack size?
Thank you

fadden

unread,
Dec 13, 2010, 7:55:40 PM12/13/10
to android-ndk
Bionic's default stack size is 1MB per thread. That should be plenty.

If not, using pthreads, pthread_attr_setstack() can be used to set the
stack attribute in the pthread_attr_t that is passed to
pthread_create().
Reply all
Reply to author
Forward
0 new messages