/**
* pTitle: 线程组群/p
* pDescription: 通过线程组管理下面的多个线程。/p
* pCopyright: Copyright (c) 2003/p
* pFilename: myThreadgroup.java/p
* @version 1.0
*/
public class myThreadgroup extends Thread {
public static int flag=1;
ThreadGroup tgA;
ThreadGroup tgB;
/**
*br方法说明:主方法
*br输入参数:
*br返回类型:
*/
public static void main(String[] args){
myThreadgroup dt = new myThreadgroup();
//声明线程组A
dt.tgA = new ThreadGroup("A");
//声明线程组B
dt.tgB = new ThreadGroup("...[ 查看全文 ]