Programming Tutorials

Comment on Tutorial - Transient vs Volatile modifiers in Java By Reema sen



Comment Added by : oldman

Comment Added at : 2011-09-24 12:32:33

Comment on Tutorial : Transient vs Volatile modifiers in Java By Reema sen
i thnk exampleThread example is wrong - like billgates says.
the TestValue instance variable used by the two threads are from diffrernt objects. So, 'volatile' or not - they will always refer to two different variables - and hence not be in sync.


View Tutorial