昨天写完线程后,发现我stop线程时已经不可用了(java8),记一下线程的结束方法
三种:已废弃的Thread.stop()、迷惑的thread.interrupt系列、最佳实践Shared Variable。 如上是Hotspot ...
三种:已废弃的Thread.stop()、迷惑的thread.interrupt系列、最佳实践Shared Variable。 如上是Hotspot ...