You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Berin Loritsch <bl...@apache.org> on 2002/06/24 16:00:37 UTC

commons.lang addition

I have some code to programmatically detect platform specific
information
such as how many CPUs are available on a machine.  This beats forcing
the
admin to enter the information.  The code is modular, allowing for new
platforms to be added at any time.

I use it to determine how many threads I should have in a ThreadPool.  I
make it a multiple of the number of processors.  Granted, for some
operating
systems, they only support one processor (like Win 9x/ME).  If there is
no adapter for a system, then it assumes there is only one processor.

Does this sound like something we want to support in Commons Lang?


"They that give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."
                - Benjamin Franklin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>