线程的生命周期
Thread的生命周期
1.新建 new
2.就绪(Runnable) start()
3.运行(Running) run()
4.阻塞(Blocked) sleep()、wait()、yield()
5.终止(Terminate) stop()
线程的生命周期
https://shikai.info/archives/life-cycle-of-thread
1.新建 new
2.就绪(Runnable) start()
3.运行(Running) run()
4.阻塞(Blocked) sleep()、wait()、yield()
5.终止(Terminate) stop()