I’m trying to get stack size of current thread in my application running on HP-UX 11.31.
On Linux I used pthread_getattr_np, on Solaris I can use thr_stksegment.
Help me please find a way to know threads stack size please on C.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found a solution for this problem in webkit sources. But this solution not suitable if high performance of application is very important to you, because creating and suspending threads are expensive operations.
I replace
baseword withsize, because in webkit sources we are looking for stack base, not size. Example code: