- 浏览: 609 次
最新评论
文章列表
产生死锁的代码:
package neicun;
public class DeadLockTest {
static class SynAddRunnable implements Runnable {
private Object a, b;
public SynAddRunnable(Object a, Object b) {
this.a = a;
this.b = b;
}
@Override
public void run() {
synchronized (a) {
try {
T ...