首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Thread 的join的兑现中有点迷惑的地方

2012-11-01 
Thread 的join的实现中有点迷惑的地方结果:Connected to the target VM, address: 127.0.0.1:1759, tran

Thread 的join的实现中有点迷惑的地方



结果:

Connected to the target VM, address: '127.0.0.1:1759', transport: 'socket'
begin >>> main  isAlive: true
joinExtend_currentThread--->  main
this ---> Thread-0   alive---> true  currentThread---> main
==============================================================
Thread-0  isAlive: true
java.lang.ThreadGroup[name=main,maxpri=10]
    ThreadGroup_child: main   state: WAITING
    ThreadGroup_child: Thread-0   state: RUNNABLE
==============================================================
Thread-0  isAlive: true
java.lang.ThreadGroup[name=main,maxpri=10]
    ThreadGroup_child: main   state: WAITING
    ThreadGroup_child: Thread-0   state: RUNNABLE
==============================================================
Thread-0  isAlive: true
java.lang.ThreadGroup[name=main,maxpri=10]
    ThreadGroup_child: main   state: WAITING
    ThreadGroup_child: Thread-0   state: RUNNABLE
==============================================================
Thread-0  isAlive: true
java.lang.ThreadGroup[name=main,maxpri=10]
    ThreadGroup_child: main   state: WAITING
    ThreadGroup_child: Thread-0   state: RUNNABLE
end >>> main  isAlive: true
Disconnected from the target VM, address: '127.0.0.1:1759', transport: 'socket'

Process finished with exit code 0

热点排行