more than 2k threads with -lpthread or -lthr

Marc Olzheim marcolz at
Thu Jun 16 14:18:59 GMT 2005

On Thu, Jun 16, 2005 at 06:52:20PM +0800, David Xu wrote:
> Both libpthread and libthr use 1M bytes stack on 32bits platform
> and 2M bytes stack on 64bits platform. I think 2k threads needs
> 2G stack on i386, this is too large.

In which case pthread_attr_setstacksize() might help ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-threads mailing list