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

David Holmes dcholmes at optusnet.com.au
Wed Feb 28 19:47:57 EST 2007


Hi Peter,

wait(0) meaning "wait forever" is an abberation. All the j.u.c timed methods
treat a timeout of zero as "return immediately".

David Holmes

> -----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