classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nio package and asynchronous io


From: Nic Ferrier
Subject: Re: nio package and asynchronous io
Date: 05 Feb 2002 10:57:58 +0000

address@hidden writes:

>  * The API implicitly allows us to do select(2). 

or poll.


>    With it, a server program which provides services via network 
>    can serve a large number of clients without many threads 
>    corresponding to each client. 

Not exactly. You can only do this if the logic of serving the request
can be coded in a slightly different way.

Thus servlet engines cannot really benefit from this, only in terms
of accepting connections.

Of course, buffers could be setup between the servlet and the HTTP
implementation but for very small and very large outputs these would
be a major inconvieniance.


Personally, I think the work that IBM did on improving OS threads was
a more interesting avenue for improving IO performance.


Nic



reply via email to

[Prev in Thread] Current Thread [Next in Thread]