more than 2k threads with -lpthread or -lthr

Marc Olzheim marcolz at stack.nl
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 ?

Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20050616/77c7ba80/attachment.bin


More information about the freebsd-threads mailing list