A
Arandil
Hello,
I have a 'little' problem with Selector.select() method. I was using NIO in
my app successfully till the time I had to connect to about 50 hosts
simulateously... Everything works, but every thread I use to wait for data
from remote host is using very much CPU (even when no data is being transfered).
I used profiler to find out which method is faulty. I found out, that my problem
is in Selector.select() method. It is taking almost all available CPU power,
no matter if there is any data waiting...
Is there any way to reduce the CPU load to the minimum or do I have to use
other method than Selectors?
Thanks in advance and best regards,
Arandil.
I have a 'little' problem with Selector.select() method. I was using NIO in
my app successfully till the time I had to connect to about 50 hosts
simulateously... Everything works, but every thread I use to wait for data
from remote host is using very much CPU (even when no data is being transfered).
I used profiler to find out which method is faulty. I found out, that my problem
is in Selector.select() method. It is taking almost all available CPU power,
no matter if there is any data waiting...
Is there any way to reduce the CPU load to the minimum or do I have to use
other method than Selectors?
Thanks in advance and best regards,
Arandil.