Callback Based Selectors
Alan Bateman
Alan.Bateman at oracle.com
Mon Jan 18 17:56:40 UTC 2016
On 18/01/2016 16:00, David M. Lloyd wrote:
>
> Hi Richard. Selector specifies a relatively extensive contract with
> respect to locking. It is not clear from the documentation of the new
> method what the behavior is with respect to the various selector
> locks. Looking at the code, it seems to sidestep locking altogether
> during the callback process, is that an accurate assessment?
>
Right, this is a concern that I brought up with Richard when we
originally chatted about this a long time back (I think at JavaOne
2014). I haven't had a chance yet to look at the current proposal but it
would minimally need a big warning as it would be too easy to cause
deadlocks and other issues when not used correctly.
-Alan.
More information about the nio-dev
mailing list