public void function(object a,object b){ synchronized(a){ synchronized (b){ a.performAction(b); b.performAction(a); } } }
2个线程的死锁?
谢谢你的回答!
public void function(object a,object b){ synchronized(a){ synchronized (b){ a.performAction(b); b.performAction(a); } } }
2个线程的死锁?
谢谢你的回答!