RE: JavaMemoryModel: Waits, Interrupts and Notify-s

From: David Holmes (dholmes@dltech.com.au)
Date: Sat May 24 2003 - 19:35:55 EDT


Doug Lea wrote:
> Interrupt does not necessarily have synchronous effects.
> The javadoc says:
>
> If this thread is blocked in an invocation of the wait(),
...
> Note the "will"s.

Note the "is blocked". After the notification or interrupt occurs the
thread is no longer blocked in the invocation. ;-)

Let's not play semantics games with wording in current docs - it is a
pointless exercise.

Nobody expects to have to issue a notify when they propagate the
InterruptedException in a notify-based design. Hence if it necessary
then the VM must take responsibility for doing it.

David Holmes

-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:45 EDT