摘要:
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 阅读全文
摘要:
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种基本的同步习语( 阅读全文