Skip to contentSkip to conversation

pthread stack limit.

DISCUSSION Vadiraj 2 participants 3 messages Nov 25, 2004 – Nov 29, 2004

lore
Share & tools
lore

Vadiraj

author
#0 lore raw

Hi Folks,

Does any one has idea on how this thread stack limit is decided
upon. I see different max stack limit for different pthread implementation. Is there a standard that is followed in deciding on thread stack size and number of threads?

Thanks in advance.

Signature · 2 lines
cheers,
Vadi
#1 lore raw

On Thu, 2004-11-25 13:04:01 +0530, Vadiraj <[email protected]> wrote in message <[email protected]>:

Quoted 4 lines

Does any one has idea on how this thread stack limit is decided
upon. I see different max stack limit for different pthread implementation. Is there a standard that is followed in deciding on thread stack size and number of threads?

I guess pthread_attr_getstacksize() and pthread_attr_setstacksize() can be used for getting/setting the size...

MfG, JBG

Signature · 4 lines
Jan-Benedict Glaw       [email protected]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
author
#2 lore raw
Quoted 10 lines · Jan-Benedict Glaw

On Thu, 2004-11-25 13:04:01 +0530, Vadiraj <[email protected]> wrote in message <[email protected]>:

Quoted 4 lines

Does any one has idea on how this thread stack limit is decided
upon. I see different max stack limit for different pthread implementation. Is there a standard that is followed in deciding on thread stack size and number of threads?

I guess pthread_attr_getstacksize() and pthread_attr_setstacksize() can be used for getting/setting the size...

Thats true. What I want to know is how is the max limit decided upon.
Does page size come into picture for this.. pthread_attr_setstacksize throws error for certain size in differnect systems. For linux its 2 mb where as some other system do support more than 8mb. How is this handled?

Signature · 2 lines
cheers,
Vadi