Volatile fields

A volatile qualifier on a field in Java imposes stricter memory semantics. Declaring a field volatile guarantees that all threads immediately see the same contents of the field after it has been written to.

See also Java Memory Model.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.196.172