摘要: Intrinsic Locks and Synchronization内置锁和同步Synchronization is built around an internal entity known as the intrinsic lock or monitor lock. (The API specification often refers to this entity simply as a "monitor.") Intrinsic locks play a role in both aspects of synchronization: enforcing excl 阅读全文
posted @ 2012-05-24 22:33 yuwenxing 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Synchronized Methods同步方法The Java programming language provides two basic synchronization idioms: synchronized methods and synchronized statements. The more complex of the two, synchronized statements, are described in the next section. This section is about synchronized methods.java编程语句提供了2种基本的同步习语( 阅读全文
posted @ 2012-05-24 20:16 yuwenxing 阅读(306) 评论(0) 推荐(0) 编辑