/**
* pTitle: 线程控制/p
* pDescription: 实现对线程的控制,中断、挂起、恢复、停止/p
* pCopyright: Copyright (c) 2003/p
* pFilename: threadCtrl.java/p
* @version 1.0
*/
public class threadCtrl{
public static void main(String [] main){
new threadCtrl();
}
/**
*br方法说明:构造器,控制其它线程
*br输入参数:
*br返回类型:
*/
threadCtrl(){
try{
Thread tm = Thread.currentThread();
threadchild td = new threadchild();
td.start();
tm.sleep(500);
System.out.println("interrupt...[ 查看全文 ]