public class testThread implements Runnable{
private int count=10;
@Override
public void run() {
for (int i = 0; i < 5; i++) {
System.out.println(Thread.currentThread().getName()+"运行 count= " + count--);
}
}
public static void main(String[] args) {
testThread mTh1=new testThread();
new Thread(mTh1,"C").start();
new Thread(mTh1,"D").start();