5, java concurrent programming in the lock art -java

  This chapter describes how to use the API and components java and contracting associated with the lock, as well as the API and components and implementation details. Mainly around two aspects: the use, by example demonstrates the use of these components and details associated with the API; achieve, by analyzing the source code to analyze the implementation details, because in order to understand more details of the implementation and proper use of these handy components. We hope to explain these two aspects of the developers to use and implement two levels have a certain understanding of the lock.

1, Lock Interface

2, the queue synchronizer

  Example 2.1 interface queue synchronizer

  Implementation and Analysis 2.2 queue synchronizer

3. reentrant lock

4. The read-write lock

  Interface with the read-write lock Example 4.1

  Implementation and Analysis 4.2 read-write lock

5.LockSupport Tools

6.Condition Interface

7. Summary

Guess you like

Origin www.cnblogs.com/panda777/p/11450477.html