摘要:
在上篇文章《多线程的使用——Thread类和Runnable接口》中提到中断线程的问题。在JAVA中,曾经使用stop方法来停止线程,然而,该方法具有固有的不安全性,因而已经被抛弃(Deprecated)。那么应该怎么结束一个进程呢?官方文档中对此有详细说明:《为何不赞成使用 Thread.stop、Thread.suspend 和 Thread.resume?》。在此引用stop方法的说明:1. Why is Thread.stop deprecated?Because it is inherently unsafe. Stopping a thread causes it to unloc 阅读全文
posted @ 2013-07-07 12:14
大新博客
阅读(2343)
评论(0)
推荐(0)

浙公网安备 33010602011771号