[concurrency-interest] Behaviour of Future.get(0)

David Holmes dcholmes at optusnet.com.au
Wed Feb 28 19:49:34 EST 2007


BTW the package docs mention this under "Timing":

"In all cases that time-outs are used, the time-out specifies the minimum
time that the method should wait before indicating that it timed-out."

Hence a minimum waiting time of zero means don't wait.

David

> -----Original Message-----
> From: concurrency-interest-bounces at cs.oswego.edu
> [mailto:concurrency-interest-bounces at cs.oswego.edu]On Behalf Of Peter
> Kovacs
> Sent: Thursday, 1 March 2007 3:38 AM
> To: concurrency-interest
> Subject: [concurrency-interest] Behaviour of Future.get(0)
>
>
> Hi,
>
> What is the reason for Future.get(0) not behaving the same way as
> Object.wait(0) (ie. immediately returning as opposed to never timing
> out)?
>
> Thanks
> Peter
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest



More information about the Concurrency-interest mailing list