Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2003 02:56:42 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: And problems regarding -lthr (1:1 KSE)
Message-ID:  <Pine.GSO.4.10.10308010251180.3123-100000@pcnet5.pcnet.com>
In-Reply-To: <Pine.BSF.4.21.0307312305410.27751-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Jul 2003, Julian Elischer wrote:
> 
> On Fri, 1 Aug 2003, Mike Makonnen wrote:
> 
> > On Fri, Aug 01, 2003 at 12:17:08PM +0900, TeJun Huh wrote:
> > >  I forgot to mention about -lthr (1:1 KSE threading) related problems.
> > > 
> > >  1. If the program is compiled with '-static -lthr', the program
> > > crashes at the first thread creation.  Stack trace follows.
> > 
> > Are you using 5.1-RELEASE or -CURRENT ? I think this has already
> > been fixed in -CURRENT.
> > 
> > >  2. Without -static, the program works fine, but pthread_create()
> > > fails with EAGAIN at thread count 110.  B.T.W. pthread_create() return
> > > value handling was wrong in the example program.  It always confuses
> > > me. :-( How can I increase this limit?  Again, I'm looking for
> > > something like ten thousands.

You can create thousands with libkse.  You'll really
only be limited by memory -- unless you create a lot
of threads as PTHREAD_SCOPE_SYSTEM, in which case you'll
likely have similar limitations as libthr.  As julian
said, libkse can be compiled to be in 1:1 mode, so if
you build it that way (the default is M:N, not 1:1),
you'll also be limited.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10308010251180.3123-100000>