harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Archie Cobbs <arc...@dellroad.org>
Subject Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]
Date Wed, 21 Jun 2006 13:47:18 GMT
Paulex Yang wrote:
>> I'm still curious what mechanism will be used to wakeup blocked threads
>> though.
> And when Thread.interrupt() executes the interruptAction and closes the 
> channel, generally the blocking I/O operation will return with an error 
> code, and if Harmony user implements a subclass of 
> AbstractInterruptibleChannel, he is required by spec to implement 
> implCloseChannel(which is invoked by close()) in similar way, in both 
> cases, the thread is waken up as by product.
> The blocking select is waken up in similar way by invoke wakeup() in 
> interruptAction.

Thanks.. for the other cases.. e.g. a thread blocked in Object.wait(),
Thread.join(), or Thread.sleep(), I guess they will require an
"interrupt action" which invokes a native method (equivalent to
the current situation), right? I.e., these cases would be handled
entirely by the VM.


Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message