Fork me on GitHub

java-实现自己的锁

代码

在这里我们只是实现lock()和unLock()方法

测试

 结果

源代码地址:https://github.com/woxbwo/is-concurrent

完成!!!

  

posted @ 2019-09-01 03:36  xbwang520  阅读(225)  评论(0编辑  收藏  举报