Lock

In JDK1.5, it provides us one different solution to control the thread concurrency. We can use the Lock API to achieve the exactly the same goal as synchronized key word.

In fact, Lock is one Interface, it has several implementations, the most famous is ReentrantLock.  

 

Baic Concerpt:

1: 

posted on 2014-10-28 21:49  杨汉祥  阅读(169)  评论(0)    收藏  举报

导航