|
-
August 9th, 2006, 11:06 AM
#1
Increasing the stack size of a Thread...very Urgent
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|