首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >同步(欧斯威戈)与锁(JDK5)

同步(欧斯威戈)与锁(JDK5)
EN

Stack Overflow用户
提问于 2009-03-31 02:49:50
回答 2查看 209关注 0票数 0

为了确定,专家们能证实

java.util.concurrent.locks.Lock

道格·利亚的原创同步

基本上是一样的但有不同的名字。

  • 获取vs锁定
  • 释放vs解锁
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2009-03-31 20:17:42

实现锁的ReentrantLock封装了一个名为Sync的类。都是道格·利亚写的。我建议您尝试使用Java中的库。

票数 1
EN

Stack Overflow用户

发布于 2009-03-31 03:50:45

至于它的价值,java.util.concurrent.locks.Lock的源代码将Doug列为作者。该软件包中的许多其他文件也是如此。

代码语言:javascript
复制
   /*
    * This file is available under and governed by the GNU General Public
    * License version 2 only, as published by the Free Software Foundation.
    * However, the following notice accompanied the original version of this
    * file:
    *
    * Written by Doug Lea with assistance from members of JCP JSR-166
    * Expert Group and released to the public domain, as explained at
    * http://creativecommons.org/licenses/publicdomain
    */
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/699838

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档