线程的状态
2020-12-08 10:06:01 0 举报
线程的状态
作者其他创作
大纲/内容
系统调度
初始(NEW)
获取到锁
Object.notify();Object.notifyAll();LockSupport.unpark(Thread)
就绪(READY)
Thread.sleep(long);Object.wait(long);Object.join(long);LockSupport.parkNanos(long);LockSupport.parkUntil(long);
终止(TERMINATED)
等待进入sysynchronized
Object.notify();Object.notifyAll();LockSupport.unpark(Thread);
运行(RUNNABLE)
阻塞(BLOCKED)
等待(WAITING)
定时等待(TIMED_WAITING)
yield()
Object.wait();Object.join();LockSupport.park();
运行中(RUNNING)
0 条评论
下一页