【发布时间】:2009-03-31 02:49:50
【问题描述】:
【问题讨论】:
标签: java multithreading concurrency
【问题讨论】:
标签: java multithreading concurrency
实现 Lock 的 ReentrantLock 包装了一个名为 Sync 的类。都是由Doug Lea写的。我建议你尝试使用 Java 中的库。
【讨论】:
不管怎样,java.util.concurrent.locks.Lock 的源代码将 Doug Lea 列为其作者。该包中的许多其他文件也是如此。
/*
* 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
*/
【讨论】: