Thread.stop()
Thread.suspend()
Thread.resume()
这些调用本质上容易导致数据损坏和死锁,因此非常不建议使用。 最好不使用 stop,而是使用合作取消;不直接调用 suspend 和 resume,而是使用中断。
stop
suspend
resume