摘要: Intrinsic Locks and SynchronizationSynchronization is built around an internal entity known as theintrinsic lockormonitor lock. (The API specification often refers to this entity simply as a "monitor.") Intrinsic locks play a role in both aspects of synchronization: enforcing exclusive acc 阅读全文
posted @ 2013-07-15 22:59 alexander.bruce.lee 阅读(356) 评论(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. To make a method sync.. 阅读全文
posted @ 2013-07-15 12:05 alexander.bruce.lee 阅读(668) 评论(0) 推荐(1)