JAVA 的多线程
多线程参考资料:
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。JAVA中的 Thread 类来中有许多方法来对线程进行操作
但是JAVA不提倡使用 stop()、suspend()、resume() 等方法来进行状态切换
其中 suspend() 和 resume() 采用 wait()、notify() / notifyAll() 等方法来替代
原因在早年 Sun 公司的一篇文章中有详细解释链接如下
Why Are Thread.stop、Thread.suspend、Thread.resume and Runtime.runFinalizersOnExit Deprecated ?

更多精彩