3 ms·
Yeah, for sockets java.nio does that just fine, not for files. Of course, it's an improvement over plain java.io but still it's not non-blocking.
by Slashed 17y ago
Yeah, for sockets java.nio does that just fine, not for files. Of course, it's an improvement over plain java.io but still it's not non-blocking.
- gojomo 17y agoActually, given improvements in threading, NIO doesn't give faster socket throughput in typical many-connection servers. See: http://paultyma.blogspot.com/2008/03/writing-java-multithreaded-servers.html http://paultyma.blogspot.com/2008/03/writing-java-multithrea...