Java: Difference between revisions

Jump to navigation Jump to search
148 bytes added ,  7 years ago
no edit summary
No edit summary
Line 27: Line 27:
===The <tt>volatile</tt> Keyword===
===The <tt>volatile</tt> Keyword===
This keyword has a sense very different from that used in C/C++. In Java <tt>volatile</tt> when applied to a variable has the effect of ensuring that its value is always read from and written to main memory.
This keyword has a sense very different from that used in C/C++. In Java <tt>volatile</tt> when applied to a variable has the effect of ensuring that its value is always read from and written to main memory.
==Further Reading==
Scott Oaks and Henry Wong, ''Java Threads: Understanding and Mastering Concurrent Programming'' (3rd edition) (O'Reilly, 2012)
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu