Thread pooling in AIO/

Alan Bateman Alan.Bateman at Sun.COM
Thu Dec 18 05:11:18 PST 2008


Nord, James wrote:
> :
> It is keeping up - 
> but with CachedPool the load is much higher than with plain old java.net
> and much higher than the synchronous nio2.
> With a fixedPool (size of 8 on dual quad core box) the load is slightly
> higher than java.net and synchronous nio2.
>
> We are seeing the occaisonal lost packets with Async IO - but we're
> experimenting to find the best tradeoff of load and packet loss.
>   
Thanks - the additional load is not a surprise (because the "simple" 
AsynchronousDatagramSocket is using select which performs very poorly on 
Windows). It is a surprise that you see any difference between the two 
thread pools. I assume it is because your cached thread pool is 
supporting 100 concurrent reads whereas your fixed thread pool is doing 
only 8 concurrent reads.

-Alan.



More information about the nio-discuss mailing list