On Jul 8, 2:26 pm, Antoni Batchelli <tbatche...@gmail.com> wrote:
> Also, in some instances with NIO you can even work directly
> with kernel buffers, and so the network data doesn't even need
> to be copied from the kernel space into the user space.

I assume that you are referring to NIO direct byte buffers.  A
threaded application can use direct byte buffers.

I apologize for my sloppy terminology. When I wrote NIO, I was
referring to the evented or async programming model.  I didn't mean to
imply that the threaded model cannot use NIO.

> If the number of threads is not bound, a traffic spike will make
> your memory requirements skyrocket, either exhausting the memory in
> your JVM or prompting the OS to start paging on its VM.

Yeah, a poorly constructed server can fall over with high load.  The
servers that I have worked with use bounded thread pools for this and
other reasons.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to