Download Source Package nbio:
This library implements nonblocking I/O facilities for Java. Surprisingly, the standard JDK libraries (as of JDK 1.3) do not provide nonblocking I/O. This means that in order to implement applications (such as web servers and other Internet services) which support many concurrent I/O streams, a large number of threads must be used. However, the overhead of threading (in Java, as well as more generally) limits the performance of such an implementation. What is needed is a nonblocking I/O library which allows a small number of threads to be used, along with a select() or poll() like mechanism to test for incoming I/O events on a large number of streams. That mechanism is what this library provides.
This version of NBIO implements the NBIO 2.0 interface. The old 1.0 interface (formerly provided by the libnbio-java package) is deprecated and will no longer be supported.
The upstream URL is http://www.cs.berkeley.edu/~mdw/proj/java-nbio/