linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pthread stack limit.
@ 2004-11-25  7:34 Vadiraj
  2004-11-25 10:48 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 3+ messages in thread
From: Vadiraj @ 2004-11-25  7:34 UTC (permalink / raw)
  To: linux-c-programming

 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.




-- 
cheers,
Vadi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pthread stack limit.
  2004-11-25  7:34 pthread stack limit Vadiraj
@ 2004-11-25 10:48 ` Jan-Benedict Glaw
  2004-11-29  7:05   ` Vadiraj
  0 siblings, 1 reply; 3+ messages in thread
From: Jan-Benedict Glaw @ 2004-11-25 10:48 UTC (permalink / raw)
  To: linux-c-programming

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

On Thu, 2004-11-25 13:04:01 +0530, Vadiraj <vadiraj.cs@gmail.com>
wrote in message <6eee1c404112423345c1d792f@mail.gmail.com>:

>   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

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pthread stack limit.
  2004-11-25 10:48 ` Jan-Benedict Glaw
@ 2004-11-29  7:05   ` Vadiraj
  0 siblings, 0 replies; 3+ messages in thread
From: Vadiraj @ 2004-11-29  7:05 UTC (permalink / raw)
  To: linux-c-programming

On Thu, 25 Nov 2004 11:48:36 +0100, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> On Thu, 2004-11-25 13:04:01 +0530, Vadiraj <vadiraj.cs@gmail.com>
> wrote in message <6eee1c404112423345c1d792f@mail.gmail.com>:
> 
> >   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?



-- 
cheers,
Vadi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-29  7:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-25  7:34 pthread stack limit Vadiraj
2004-11-25 10:48 ` Jan-Benedict Glaw
2004-11-29  7:05   ` Vadiraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).