Question about AsynchronousByteChannel.read()
cowwoc
cowwoc at bbs.darktech.org
Tue Jul 19 06:42:31 PDT 2011
On 19/07/2011 9:38 AM, Alan Bateman wrote:
> cowwoc wrote:
>> :
>> Couldn't steam-oriented channels simply queue incoming requests and
>> handle
>> them on a first-come first-serve basis?
> That would mean the completion handlers could run concurrently or even
> out of order and would be tricky to handle.
... How so? If we queue incoming requests, only one operation runs
at a time. Completion handlers are guaranteed to return in the order in
which they were submitted. Am I missing something?
Gili
More information about the nio-dev
mailing list