Currently browsing

April 2013

How volatile keyword works in java

When a shared variable is  accessed by multiple threads, think about volatile keyword.  When a field  is accessed by multiple threads, one …