[986] in java-interest

home help back first fref pref prev next nref lref last post

Re: Maximum number of threads

daemon@ATHENA.MIT.EDU (Philip Craig)
Wed Aug 16 07:57:31 1995

From: Philip Craig <craigpa@gb.swissbank.com>
Date: Wed, 16 Aug 95 08:59:24 +0100
To: lindholm@scndprsn.Eng.Sun.COM (Tim Lindholm)
Cc: java-interest@java.sun.com
Reply-To: Philip Craig <craigpa@gb.swissbank.com>

>  If anybody knows of relevant limits in likely native threads
>  packages, or other relevant least common denominators,
>  I'd be interested in hearing about them.  We should make
>  that info available to Java programmers.

Hi,

The documentation for Mach (used with NeXTStep, which perhaps could  
be considered a "likely native threads package") states:

"The danger in creating a large number of threads is that the  
kernel might run out of resources and panic.  Usually, a task should  
avoid creating more than about 200 threads."

Mach gives you functions to return the number of threads running,  
and to set and get a limit beyond which thread creation fails. It  
defaults to unlimited, but with the above caveat.

Hope this helps,
Philip Craig
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post