Hi,
my question is about the thread safety of the
SelectableChannel.register() method. In my first thread I would like
to register channels (serverChannels) to a Selector instance, while a
second thread actually calls selector.select().
Now the thing is - does anybody know if that could actually work, or
is that a bad idea?
Greetings & thanks for your efforts already,
Axel.
Daniel Pitts - 12 Mar 2007 19:57 GMT
> Hi,
>
[quoted text clipped - 8 lines]
> Greetings & thanks for your efforts already,
> Axel.
According to <http://java.sun.com/j2se/1.5.0/docs/api/java/nio/
channels/SelectableChannel.html>
"Selectable channels are safe for use by multiple concurrent threads."