Hii Alll

I am new to Threads in C. I am doing C in Unix Solaris.

In my program for creating Threads I am using the function
thr_create( NULL, 0, ThreadFunc, NULL, THR_BOUND, NULL ))
in which second argument indicates the stack size. 3rd argument
is function name in which Thread executes.

If we give it as 0 it takes default size of some bytes. In my case
I am using so many local variables of large character arrays.
so I need to increase stack size. If I am giving any other value
other than 0 as a second argument it is giving segmentation fault
in ThreadFunc().

Can anyone please suggest me How to increase the stack size of
a thread?

Thanks in advance.
prashas_d.