`
ak_2005
  • 浏览: 799 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
为了测试java多线程死锁 得到java多线程死锁的直观感觉,写出以下测试代码。 public class TestDeadLock { public static void main(String[] args) {    A a=new A();    B b=new B(a);    a.set(b);    Thread t1=new Thread(a);    Thread t2=new Thread(b);    t1.start();    t2.start(); } } class A implements Runnable { public B b; public voi ...
Global site tag (gtag.js) - Google Analytics