let's play TDD, tackles closures in java

Brian Goetz brian.goetz at oracle.com
Mon Dec 20 02:50:26 PST 2010

>> You can as well use AtomicBoolean, which has an extra benefit of having
>> defined behaviour in multithreaded case.
> And the extra disadvantage of having a much higher performance overhead in
> the single-threaded case.

The example he gave, which was Swing-based, was inherently multi-threaded.

More information about the lambda-dev mailing list