threaded NIO implementation