Nice to @Share?

Mark Thornton mthornton at optrak.co.uk
Mon Feb 22 13:59:53 PST 2010


Joshua Bloch wrote:
> Not so. Shared *mutable* state must be synchronized.  If it's not shared *or
> not mutable*, no synchronization is necessary.
>
>     Josh
>   
I understood that non mutable state actually has to be declared final if 
you want to share it across threads reliably without using 
synchronization. Merely not modifying it isn't sufficient.

Mark



More information about the lambda-dev mailing list