摘要: The volatile keyword indicates that a field might be modified by multiple threads that are executing at the same time. Fields that are declared volatile are not subject to compiler optimizations that assume access by a single thread. This ensures that the most up-to-date value is present in the fie. 阅读全文
posted @ 2011-08-18 16:11 higirle 阅读(381) 评论(0) 推荐(0) 编辑