How do you decide appropriate pthread stack size?

  • Follow


Hi,

I'm developing multithread application.

In considering a few things for stability, I happened to think about
stack size.
( I haven't considered the stack size when I developed multithreading,
in windows - maybe my stupidity )

And I founded pthread_attr_getstacksize, pthread_attr_setstacksize,
pthread_attr_setguardsize.

But I can't decide how much stack size is good to my application.

The returned stack size is 98034 and guardsize is 4096.
But I don't know that size is small or enough, and how do I judge
that.

So, I want hear your way, know-how that decide appropriate stack size
and guard size.

thanks for reading, and any help
0
Reply smilor0313 (9) 2/18/2009 7:30:24 AM

smilor0313 wrote:
> Hi,

Once is enough!

-- 
Ian Collins
0
Reply ian-news (9881) 2/18/2009 8:01:25 AM


1 Replies
58 Views

(page loaded in 0.099 seconds)


Reply: