Bureaucrats, cc_docs_admin, cc_staff
2,306
edits
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) |