[concurrency-interest] Condition.awaitNanos

David Holmes dcholmes at optusnet.com.au
Fri Mar 10 20:56:15 EST 2006

I wrote:
> In which case, I have to agree that there is a potential problem if the
> elapsed time as calculated is greater than the requested timeout.
> You would get a negative value, indicating a timeout even though you
> time out.

As Doug indicated for Conditions this isn't a problem because you (nearly
always) recheck the condition. But as specified there is an ambiguity when
you get a negative return value.

David Holmes

More information about the Concurrency-interest mailing list