Java Sockets

One thread per connection?

Synchrone I/O, Single connection per thread

Problems:

Asynchrone I/O, Single thread per server

Java NIO

Nach http://rox-xmlrpc.sourceforge.net/niotut/

Single selecting Thread verwenden: Input/Output in selecting Thread behandeln, Writes queuen, Channels lesen und Daten in Worker thread lesen.

NIO vs. IO (asynchronous vs. synchronous)