On 18/10/06, James Im <[EMAIL PROTECTED]> wrote:
When reading this thread I 'm thinking that mina should have a method
somewhere that would define the number of cpus/cores of the underlying
system. For example: xxxx.setCpuNumber(2);
From that only setting, wouldn't mina have enough information to
configure itself optimally?
You can already get this from the Java runtime:
Runtime.getRuntime().availableProcessors();
We use this to configure various bits of Qpid, e.g.
https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/java/common/src/org/apache/qpid/pool/ReferenceCountingExecutorService.java
RG